home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / U-Z / VideoToolbox 4.95.sit / VideoToolbox / Demos / Sandstorm.c < prev    next >
MacBinary  |  1994-11-15  |  11.9 KB  |  [TEXT/MMCC]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Tue Nov 15 05:46:10 1994, modified Tue Nov 15 05:46:10 1994, creator 'MMCC', type ASCII, 10694 bytes "Sandstorm.c" , at 0x2a46 1200 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MMCC]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 53 61 6e 64 73 74 | 6f 72 6d 2e 63 00 00 00 |..Sandst|orm.c...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 4d 43 | 43 00 00 00 00 00 00 00 |.TEXTMMC|C.......|
|00000050| 00 00 00 00 00 29 c6 00 | 00 04 b0 aa ee 41 f2 aa |.....)..|.....A..|
|00000060| ee 41 f2 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.A......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 68 74 00 00 |........|....ht..|
|00000080| 2f 2a 0d 53 61 6e 64 73 | 74 6f 72 6d 2e 63 0d 43 |/*.Sands|torm.c.C|
|00000090| 6f 70 79 72 69 67 68 74 | 20 a9 20 31 39 38 39 2d |opyright| . 1989-|
|000000a0| 31 39 39 34 20 44 65 6e | 69 73 20 50 65 6c 6c 69 |1994 Den|is Pelli|
|000000b0| 0d 54 68 69 73 20 70 72 | 6f 67 72 61 6d 20 73 68 |.This pr|ogram sh|
|000000c0| 6f 77 73 20 61 20 6e 6f | 69 73 65 20 6d 6f 76 69 |ows a no|ise movi|
|000000d0| 65 2c 20 61 20 64 79 6e | 61 6d 69 63 20 72 61 6e |e, a dyn|amic ran|
|000000e0| 64 6f 6d 20 63 68 65 63 | 6b 65 72 62 6f 61 72 64 |dom chec|kerboard|
|000000f0| 2c 20 61 74 20 36 36 2e | 37 20 48 7a 21 0d 54 68 |, at 66.|7 Hz!.Th|
|00000100| 65 20 6b 65 79 20 72 6f | 75 74 69 6e 65 2c 20 77 |e key ro|utine, w|
|00000110| 68 69 63 68 20 73 68 6f | 77 73 20 65 61 63 68 20 |hich sho|ws each |
|00000120| 66 72 61 6d 65 2c 20 69 | 73 20 74 68 65 20 56 69 |frame, i|s the Vi|
|00000130| 64 65 6f 54 6f 6f 6c 62 | 6f 78 20 72 6f 75 74 69 |deoToolb|ox routi|
|00000140| 6e 65 20 43 6f 70 79 42 | 69 74 73 51 75 69 63 6b |ne CopyB|itsQuick|
|00000150| 6c 79 28 29 2e 0d 0d 54 | 6f 20 67 65 74 20 61 20 |ly()...T|o get a |
|00000160| 74 72 75 65 20 69 6d 70 | 72 65 73 73 69 6f 6e 20 |true imp|ression |
|00000170| 6f 66 20 77 68 69 74 65 | 20 6e 6f 69 73 65 20 79 |of white| noise y|
|00000180| 6f 75 20 6e 65 65 64 20 | 74 6f 20 63 6f 6d 70 75 |ou need |to compu|
|00000190| 74 65 20 6c 6f 74 73 20 | 6f 66 20 6e 6f 69 73 65 |te lots |of noise|
|000001a0| 0d 66 72 61 6d 65 73 2c | 20 73 6f 20 67 69 76 65 |.frames,| so give|
|000001b0| 20 69 74 20 61 73 20 6d | 75 63 68 20 6d 65 6d 6f | it as m|uch memo|
|000001c0| 72 79 20 61 73 20 79 6f | 75 20 63 61 6e 2c 20 65 |ry as yo|u can, e|
|000001d0| 2e 67 2e 20 33 20 4d 42 | 2e 20 28 55 73 65 20 74 |.g. 3 MB|. (Use t|
|000001e0| 68 65 20 46 69 6e 64 65 | 72 20 47 65 74 0d 49 6e |he Finde|r Get.In|
|000001f0| 66 6f 20 63 6f 6d 6d 61 | 6e 64 2e 29 20 53 61 6e |fo comma|nd.) San|
|00000200| 64 73 74 6f 72 6d 20 66 | 69 6c 6c 73 20 61 6c 6c |dstorm f|ills all|
|00000210| 20 74 68 65 20 6d 65 6d | 6f 72 79 20 79 6f 75 20 | the mem|ory you |
|00000220| 67 69 76 65 20 69 74 20 | 77 69 74 68 20 70 72 65 |give it |with pre|
|00000230| 2d 63 6f 6d 70 75 74 65 | 64 0d 6e 6f 69 73 65 2c |-compute|d.noise,|
|00000240| 20 77 68 69 63 68 20 64 | 6f 65 73 20 74 61 6b 65 | which d|oes take|
|00000250| 20 73 6f 6d 65 20 74 69 | 6d 65 2e 20 45 61 63 68 | some ti|me. Each|
|00000260| 20 64 69 73 70 6c 61 79 | 65 64 20 66 72 61 6d 65 | display|ed frame|
|00000270| 20 69 73 20 74 61 6b 65 | 6e 20 66 72 6f 6d 20 61 | is take|n from a|
|00000280| 20 72 61 6e 64 6f 6d 0d | 6f 66 66 73 65 74 20 77 | random.|offset w|
|00000290| 69 74 68 69 6e 20 74 68 | 61 74 20 6e 6f 69 73 65 |ithin th|at noise|
|000002a0| 2e 0d 0d 4e 6f 74 65 3a | 20 74 68 65 20 61 6d 6f |...Note:| the amo|
|000002b0| 75 6e 74 20 6f 66 20 64 | 61 74 61 20 74 68 61 74 |unt of d|ata that|
|000002c0| 20 68 61 73 20 74 6f 20 | 62 65 20 74 72 61 6e 73 | has to |be trans|
|000002d0| 66 65 72 65 64 20 62 79 | 20 43 6f 70 79 42 69 74 |fered by| CopyBit|
|000002e0| 73 51 75 69 63 6b 6c 79 | 28 29 20 69 6e 20 65 61 |sQuickly|() in ea|
|000002f0| 63 68 0d 66 72 61 6d 65 | 20 69 73 20 70 72 6f 70 |ch.frame| is prop|
|00000300| 6f 72 74 69 6f 6e 61 6c | 20 74 6f 20 77 69 6e 64 |ortional| to wind|
|00000310| 6f 77 20 61 72 65 61 20 | 61 6e 64 20 74 68 65 20 |ow area |and the |
|00000320| 62 69 74 73 2f 70 69 78 | 65 6c 20 6f 66 20 74 68 |bits/pix|el of th|
|00000330| 65 20 64 69 73 70 6c 61 | 79 2c 20 61 73 20 73 65 |e displa|y, as se|
|00000340| 74 20 62 79 0d 43 6f 6e | 74 72 6f 6c 20 50 61 6e |t by.Con|trol Pan|
|00000350| 65 6c 20 4d 6f 6e 69 74 | 6f 72 73 2e 20 41 74 20 |el Monit|ors. At |
|00000360| 38 20 62 69 74 73 2f 70 | 69 78 65 6c 20 74 68 65 |8 bits/p|ixel the|
|00000370| 20 6d 61 78 69 6d 75 6d | 20 77 69 6e 64 6f 77 20 | maximum| window |
|00000380| 74 68 61 74 20 63 61 6e | 20 62 65 20 75 70 64 61 |that can| be upda|
|00000390| 74 65 64 0d 61 74 20 36 | 36 20 48 7a 20 69 73 20 |ted.at 6|6 Hz is |
|000003a0| 61 62 6f 75 74 20 31 39 | 32 78 31 39 32 2e 20 41 |about 19|2x192. A|
|000003b0| 74 20 31 20 62 69 74 2f | 70 69 78 65 6c 20 77 65 |t 1 bit/|pixel we|
|000003c0| 20 63 61 6e 20 64 6f 20 | 61 74 20 6c 65 61 73 74 | can do |at least|
|000003d0| 20 34 38 30 78 36 34 30 | 2e 0d 0d 53 61 6e 64 73 | 480x640|...Sands|
|000003e0| 74 6f 72 6d 2d 2d 6e 6f | 74 20 43 6f 70 79 42 69 |torm--no|t CopyBi|
|000003f0| 74 73 51 75 69 63 6b 6c | 79 2d 2d 63 61 6c 6c 73 |tsQuickl|y--calls|
|00000400| 20 57 61 69 74 4e 65 78 | 74 45 76 65 6e 74 28 29 | WaitNex|tEvent()|
|00000410| 20 62 65 66 6f 72 65 20 | 65 61 63 68 0d 66 72 61 | before |each.fra|
|00000420| 6d 65 2c 20 69 6e 20 6f | 72 64 65 72 20 74 6f 20 |me, in o|rder to |
|00000430| 62 65 20 72 65 73 70 6f | 6e 73 69 76 65 20 74 6f |be respo|nsive to|
|00000440| 20 74 68 65 20 6d 6f 75 | 73 65 2c 20 61 6e 64 20 | the mou|se, and |
|00000450| 74 68 69 73 20 72 65 73 | 75 6c 74 73 20 69 6e 20 |this res|ults in |
|00000460| 6f 63 63 61 73 69 6f 6e | 61 6c 0d 70 61 75 73 65 |occasion|al.pause|
|00000470| 73 20 61 73 20 74 68 65 | 20 4d 61 63 20 74 61 6b |s as the| Mac tak|
|00000480| 65 73 20 74 69 6d 65 20 | 6f 75 74 20 74 6f 20 64 |es time |out to d|
|00000490| 6f 20 76 61 72 69 6f 75 | 73 20 63 68 6f 72 65 73 |o variou|s chores|
|000004a0| 2e 0d 0d 0d 48 49 53 54 | 4f 52 59 3a 0d 31 31 2f |....HIST|ORY:.11/|
|000004b0| 32 33 2f 38 38 20 64 67 | 70 20 64 65 72 69 76 65 |23/88 dg|p derive|
|000004c0| 64 20 66 72 6f 6d 20 74 | 72 75 65 6e 6f 69 73 65 |d from t|ruenoise|
|000004d0| 44 65 6d 6f 32 2e 63 0d | 34 2f 37 2f 38 39 20 64 |Demo2.c.|4/7/89 d|
|000004e0| 67 70 20 09 49 20 72 65 | 6d 6f 76 65 64 20 6e 65 |gp .I re|moved ne|
|000004f0| 61 72 6c 79 20 61 6c 6c | 20 74 68 65 20 68 61 72 |arly all| the har|
|00000500| 64 77 61 72 65 20 64 65 | 70 65 6e 64 65 6e 63 69 |dware de|pendenci|
|00000510| 65 73 2e 20 54 68 65 20 | 6f 6e 6c 79 20 72 65 6d |es. The |only rem|
|00000520| 61 69 6e 69 6e 67 20 6f | 6e 65 0d 09 09 09 69 73 |aining o|ne....is|
|00000530| 20 74 68 65 20 63 61 6c | 6c 20 74 6f 20 4e 65 77 | the cal|l to New|
|00000540| 46 69 65 6c 64 54 46 42 | 28 29 2e 20 49 20 64 6f |FieldTFB|(). I do|
|00000550| 6e 27 74 20 6b 6e 6f 77 | 20 68 6f 77 20 74 6f 20 |n't know| how to |
|00000560| 67 65 74 20 72 69 64 20 | 6f 66 20 74 68 61 74 2c |get rid |of that,|
|00000570| 20 73 68 6f 72 74 0d 09 | 09 09 6f 66 20 77 72 69 | short..|..of wri|
|00000580| 74 69 6e 67 20 61 20 56 | 42 4c 20 74 61 73 6b 2e |ting a V|BL task.|
|00000590| 0d 39 2f 32 39 2f 38 39 | 20 64 67 70 20 49 27 76 |.9/29/89| dgp I'v|
|000005a0| 65 20 6e 65 61 72 6c 79 | 20 75 70 64 61 74 65 64 |e nearly| updated|
|000005b0| 20 74 68 69 73 20 74 6f | 20 54 48 49 4e 4b 20 43 | this to| THINK C|
|000005c0| 20 34 2e 30 2c 20 62 75 | 74 20 74 68 65 20 63 61 | 4.0, bu|t the ca|
|000005d0| 6c 6c 20 74 6f 20 54 69 | 63 6b 43 6f 75 6e 74 2c |ll to Ti|ckCount,|
|000005e0| 20 0d 09 09 09 72 65 66 | 65 72 73 20 74 6f 20 74 | ....ref|ers to t|
|000005f0| 68 65 20 6f 6c 64 20 70 | 72 6f 66 69 6c 65 72 2c |he old p|rofiler,|
|00000600| 20 61 6e 64 20 49 20 64 | 6f 6e 27 74 20 68 61 76 | and I d|on't hav|
|00000610| 65 20 74 69 6d 65 20 74 | 6f 20 66 69 67 75 72 65 |e time t|o figure|
|00000620| 20 74 68 69 73 20 6f 75 | 74 20 6e 6f 77 2e 0d 31 | this ou|t now..1|
|00000630| 30 2f 32 38 2f 38 39 20 | 64 67 70 20 49 20 72 65 |0/28/89 |dgp I re|
|00000640| 70 6c 61 63 65 64 20 74 | 68 65 20 63 61 6c 6c 20 |placed t|he call |
|00000650| 74 6f 20 4e 65 77 46 69 | 65 6c 64 54 46 42 28 29 |to NewFi|eldTFB()|
|00000660| 20 62 79 20 61 20 63 61 | 6c 6c 20 74 6f 20 47 44 | by a ca|ll to GD|
|00000670| 53 65 74 45 6e 74 72 69 | 65 73 28 29 20 77 68 69 |SetEntri|es() whi|
|00000680| 63 68 0d 09 09 09 69 73 | 20 61 20 64 65 76 69 63 |ch....is| a devic|
|00000690| 65 2d 69 6e 64 65 70 65 | 6e 64 65 6e 74 20 77 61 |e-indepe|ndent wa|
|000006a0| 79 20 74 6f 20 77 61 69 | 74 20 66 6f 72 20 74 68 |y to wai|t for th|
|000006b0| 65 20 65 6e 64 20 6f 66 | 20 66 72 61 6d 65 2e 0d |e end of| frame..|
|000006c0| 37 2f 31 39 2f 39 30 20 | 64 67 70 20 55 6e 66 6f |7/19/90 |dgp Unfo|
|000006d0| 72 74 75 6e 61 74 65 6c | 79 20 74 68 65 20 62 75 |rtunatel|y the bu|
|000006e0| 69 6c 74 2d 69 6e 20 76 | 69 64 65 6f 20 6f 6e 20 |ilt-in v|ideo on |
|000006f0| 74 68 65 20 4d 61 63 20 | 49 49 63 69 20 69 73 20 |the Mac |IIci is |
|00000700| 62 75 67 67 79 20 61 6e | 64 20 64 6f 65 73 6e 27 |buggy an|d doesn'|
|00000710| 74 0d 09 09 09 73 75 70 | 70 6f 72 74 20 74 68 65 |t....sup|port the|
|00000720| 20 73 65 74 45 6e 74 72 | 69 65 73 20 63 61 6c 6c | setEntr|ies call|
|00000730| 2e 0d 31 30 2f 31 37 2f | 39 30 20 64 67 70 20 59 |..10/17/|90 dgp Y|
|00000740| 61 79 2e 20 46 69 6e 61 | 6c 6c 79 20 72 65 6d 6f |ay. Fina|lly remo|
|00000750| 76 65 64 20 6c 61 73 74 | 20 62 75 67 73 21 20 52 |ved last| bugs! R|
|00000760| 65 70 6c 61 63 65 64 20 | 53 6c 6f 74 54 6f 53 63 |eplaced |SlotToSc|
|00000770| 72 65 65 6e 44 65 76 69 | 63 65 28 29 20 62 79 0d |reenDevi|ce() by.|
|00000780| 09 09 09 41 64 64 72 65 | 73 73 54 6f 53 63 72 65 |...Addre|ssToScre|
|00000790| 65 6e 44 65 76 69 63 65 | 28 29 20 69 6e 20 6f 72 |enDevice|() in or|
|000007a0| 64 65 72 20 74 6f 20 6d | 61 6b 65 20 69 74 20 63 |der to m|ake it c|
|000007b0| 6f 6d 70 61 74 69 62 6c | 65 20 77 69 74 68 20 62 |ompatibl|e with b|
|000007c0| 75 69 6c 74 2d 69 6e 20 | 76 69 64 65 6f 0d 09 09 |uilt-in |video...|
|000007d0| 09 6f 6e 20 4d 61 63 20 | 49 49 63 69 2c 20 49 49 |.on Mac |IIci, II|
|000007e0| 73 69 2c 20 61 6e 64 20 | 4c 43 2e 20 52 65 6d 6f |si, and |LC. Remo|
|000007f0| 76 65 64 20 74 68 65 20 | 73 65 74 45 6e 74 72 69 |ved the |setEntri|
|00000800| 65 73 20 63 61 6c 6c 20 | 66 6f 72 20 63 6f 6d 70 |es call |for comp|
|00000810| 61 74 69 62 69 6c 69 74 | 79 0d 09 09 09 77 69 74 |atibilit|y....wit|
|00000820| 68 20 4d 61 63 20 49 49 | 63 69 20 62 75 69 6c 74 |h Mac II|ci built|
|00000830| 2d 69 6e 20 76 69 64 65 | 6f 2e 28 41 70 70 6c 65 |-in vide|o.(Apple|
|00000840| 20 68 61 73 20 61 63 6b | 6e 6f 77 6c 65 64 67 65 | has ack|nowledge|
|00000850| 64 20 62 75 67 2c 20 62 | 75 74 20 62 75 67 20 69 |d bug, b|ut bug i|
|00000860| 73 0d 09 09 09 73 74 69 | 6c 6c 20 70 72 65 73 65 |s....sti|ll prese|
|00000870| 6e 74 20 69 6e 20 53 79 | 73 74 65 6d 20 36 2e 30 |nt in Sy|stem 6.0|
|00000880| 37 2e 29 20 46 69 78 65 | 64 20 62 75 67 20 77 68 |7.) Fixe|d bug wh|
|00000890| 65 72 65 62 79 20 72 65 | 73 69 7a 69 6e 67 20 77 |ereby re|sizing w|
|000008a0| 69 6e 64 6f 77 20 6f 6e | 20 6f 74 68 65 72 0d 09 |indow on| other..|
|000008b0| 09 09 74 68 61 6e 20 74 | 68 65 20 6d 61 69 6e 20 |..than t|he main |
|000008c0| 73 63 72 65 65 6e 20 6c | 65 66 74 20 77 69 6e 64 |screen l|eft wind|
|000008d0| 6f 77 20 62 6c 61 6e 6b | 20 75 6e 74 69 6c 20 69 |ow blank| until i|
|000008e0| 74 20 77 61 73 20 64 72 | 61 67 67 65 64 20 61 67 |t was dr|agged ag|
|000008f0| 61 69 6e 2e 20 0d 09 09 | 09 52 65 6d 6f 76 65 64 |ain. ...|.Removed|
|00000900| 20 75 6e 75 73 65 64 20 | 76 61 72 69 61 62 6c 65 | unused |variable|
|00000910| 73 2e 20 41 64 64 65 64 | 20 7a 6f 6f 6d 20 62 6f |s. Added| zoom bo|
|00000920| 78 2e 0d 31 30 2f 31 38 | 2f 39 30 20 64 67 70 20 |x..10/18|/90 dgp |
|00000930| 54 69 64 69 65 64 20 75 | 70 2e 20 4e 6f 77 20 7a |Tidied u|p. Now z|
|00000940| 6f 6f 6d 73 20 6f 6e 74 | 6f 20 73 63 72 65 65 6e |ooms ont|o screen|
|00000950| 20 77 69 74 68 20 6c 61 | 72 67 65 73 74 20 69 6e | with la|rgest in|
|00000960| 74 65 72 73 65 63 74 69 | 6f 6e 2c 20 61 6e 64 20 |tersecti|on, and |
|00000970| 7a 6f 6f 6d 73 20 62 61 | 63 6b 0d 09 09 09 74 6f |zooms ba|ck....to|
|00000980| 20 6f 72 69 67 69 6e 61 | 6c 20 73 69 7a 65 2e 20 | origina|l size. |
|00000990| 55 73 65 73 20 61 73 20 | 6d 75 63 68 20 6d 65 6d |Uses as |much mem|
|000009a0| 6f 72 79 20 61 73 20 75 | 73 65 72 20 61 6c 6c 6f |ory as u|ser allo|
|000009b0| 63 61 74 65 73 20 74 6f | 20 70 72 6f 67 72 61 6d |cates to| program|
|000009c0| 2e 20 0d 09 09 09 57 69 | 6e 64 6f 77 20 6e 6f 77 |. ....Wi|ndow now|
|000009d0| 20 61 6c 77 61 79 73 20 | 63 6f 6e 66 69 6e 65 73 | always |confines|
|000009e0| 20 69 74 73 65 6c 66 20 | 74 6f 20 61 20 73 69 6e | itself |to a sin|
|000009f0| 67 6c 65 20 73 63 72 65 | 65 6e 2c 20 62 75 74 20 |gle scre|en, but |
|00000a00| 63 61 6e 20 62 65 20 64 | 72 61 67 67 65 64 0d 09 |can be d|ragged..|
|00000a10| 09 09 61 6e 79 77 68 65 | 72 65 2e 0d 31 30 2f 32 |..anywhe|re..10/2|
|00000a20| 30 2f 39 30 20 64 67 70 | 20 43 6f 70 69 65 64 20 |0/90 dgp| Copied |
|00000a30| 63 6f 64 65 20 66 72 6f | 6d 20 56 69 64 65 6f 54 |code fro|m VideoT|
|00000a40| 65 73 74 20 74 6f 20 63 | 6c 6f 73 65 20 77 69 6e |est to c|lose win|
|00000a50| 64 6f 77 20 61 6e 64 20 | 71 75 69 74 20 6f 6e 20 |dow and |quit on |
|00000a60| 43 6f 6d 6d 61 6e 64 2d | 57 20 6f 72 0d 09 09 09 |Command-|W or....|
|00000a70| 43 6f 6d 6d 61 6e 64 2d | 2e 20 50 72 65 76 65 6e |Command-|. Preven|
|00000a80| 74 65 64 20 77 69 6e 64 | 6f 77 20 74 69 74 6c 65 |ted wind|ow title|
|00000a90| 20 62 61 72 20 66 72 6f | 6d 20 62 65 69 6e 67 20 | bar fro|m being |
|00000aa0| 68 69 64 64 65 6e 20 62 | 65 68 69 6e 64 20 74 68 |hidden b|ehind th|
|00000ab0| 65 20 6d 65 6e 75 0d 09 | 09 09 62 61 72 2e 0d 37 |e menu..|..bar..7|
|00000ac0| 2f 32 32 2f 39 31 09 64 | 67 70 09 4d 61 64 65 20 |/22/91.d|gp.Made |
|00000ad0| 63 6f 6d 70 61 74 69 62 | 6c 65 20 77 69 74 68 20 |compatib|le with |
|00000ae0| 4d 50 57 20 43 2e 20 54 | 68 69 73 20 72 65 71 75 |MPW C. T|his requ|
|00000af0| 69 72 65 64 20 63 68 61 | 6e 67 69 6e 67 20 49 4e |ired cha|nging IN|
|00000b00| 54 5f 4d 41 58 20 74 6f | 20 53 48 52 54 5f 4d 41 |T_MAX to| SHRT_MA|
|00000b10| 58 2e 0d 09 09 09 48 6f | 77 65 76 65 72 2c 20 70 |X.....Ho|wever, p|
|00000b20| 65 72 66 6f 72 6d 61 6e | 63 65 20 69 73 20 73 6c |erforman|ce is sl|
|00000b30| 6f 77 2c 20 73 69 6e 63 | 65 20 43 6f 70 79 42 69 |ow, sinc|e CopyBi|
|00000b40| 74 73 51 75 69 63 6b 6c | 79 2e 63 20 64 6f 65 73 |tsQuickl|y.c does|
|00000b50| 6e 27 74 20 67 65 6e 65 | 72 61 74 65 0d 09 09 09 |n't gene|rate....|
|00000b60| 68 61 6e 64 2d 74 75 6e | 65 64 20 61 73 73 65 6d |hand-tun|ed assem|
|00000b70| 62 6c 79 20 63 6f 64 65 | 20 77 68 65 6e 20 75 73 |bly code| when us|
|00000b80| 69 6e 67 20 4d 50 57 20 | 43 2e 0d 38 2f 36 2f 39 |ing MPW |C..8/6/9|
|00000b90| 31 09 64 67 70 09 52 65 | 70 6c 61 63 65 64 20 72 |1.dgp.Re|placed r|
|00000ba0| 61 6e 64 55 28 29 20 62 | 79 20 52 61 6e 64 46 69 |andU() b|y RandFi|
|00000bb0| 6c 6c 28 29 2c 20 77 68 | 69 63 68 20 72 75 6e 73 |ll(), wh|ich runs|
|00000bc0| 20 74 77 69 63 65 20 61 | 73 20 66 61 73 74 2e 0d | twice a|s fast..|
|00000bd0| 38 2f 32 34 2f 39 31 09 | 64 67 70 09 4d 61 64 65 |8/24/91.|dgp.Made|
|00000be0| 20 63 6f 6d 70 61 74 69 | 62 6c 65 20 77 69 74 68 | compati|ble with|
|00000bf0| 20 54 48 49 4e 4b 20 43 | 20 35 2e 30 2e 0d 37 2f | THINK C| 5.0..7/|
|00000c00| 32 30 2f 39 32 09 64 67 | 70 09 74 69 64 69 65 64 |20/92.dg|p.tidied|
|00000c10| 20 75 70 20 74 68 65 20 | 63 6f 6d 6d 65 6e 74 73 | up the |comments|
|00000c20| 20 73 6c 69 67 68 74 6c | 79 2e 20 43 6f 6e 66 69 | slightl|y. Confi|
|00000c30| 72 6d 65 64 20 63 6f 6d | 70 61 74 69 62 69 6c 69 |rmed com|patibili|
|00000c40| 74 79 20 77 69 74 68 20 | 33 32 2d 62 69 74 0d 09 |ty with |32-bit..|
|00000c50| 09 09 61 64 64 72 65 73 | 73 69 6e 67 2e 0d 38 2f |..addres|sing..8/|
|00000c60| 32 37 2f 39 32 09 64 67 | 70 09 72 65 70 6c 61 63 |27/92.dg|p.replac|
|00000c70| 65 20 53 79 73 45 6e 76 | 69 72 6f 6e 73 28 29 20 |e SysEnv|irons() |
|00000c80| 62 79 20 47 65 73 74 61 | 6c 74 28 29 0d 31 2f 31 |by Gesta|lt().1/1|
|00000c90| 33 2f 39 33 20 64 67 70 | 09 63 68 61 6e 67 65 64 |3/93 dgp|.changed|
|00000ca0| 20 64 65 66 61 75 6c 74 | 73 20 74 6f 20 6d 61 78 | default|s to max|
|00000cb0| 69 6d 69 7a 65 20 73 70 | 65 65 64 2e 0d 39 2f 33 |imize sp|eed..9/3|
|00000cc0| 2f 39 33 09 64 67 70 09 | 61 64 64 65 64 20 63 61 |/93.dgp.|added ca|
|00000cd0| 6c 6c 20 74 6f 20 53 68 | 69 65 6c 64 43 75 72 73 |ll to Sh|ieldCurs|
|00000ce0| 6f 72 28 29 20 66 6f 72 | 20 63 6f 6d 70 61 74 69 |or() for| compati|
|00000cf0| 62 69 6c 69 74 79 20 77 | 69 74 68 20 6e 6f 6e 73 |bility w|ith nons|
|00000d00| 74 61 6e 64 61 72 64 0d | 09 09 09 76 69 64 65 6f |tandard.|...video|
|00000d10| 20 64 65 76 69 63 65 73 | 2c 20 65 2e 67 2e 20 52 | devices|, e.g. R|
|00000d20| 61 64 69 75 73 20 50 6f | 77 65 72 56 69 65 77 2e |adius Po|werView.|
|00000d30| 0d 36 2f 33 2f 39 34 09 | 64 67 70 09 72 65 70 6c |.6/3/94.|dgp.repl|
|00000d40| 61 63 65 64 20 6c 6f 77 | 2d 6d 65 6d 6f 72 79 20 |aced low|-memory |
|00000d50| 67 6c 6f 62 61 6c 20 4d | 42 61 72 48 65 69 67 68 |global M|BarHeigh|
|00000d60| 74 20 62 79 20 47 65 74 | 4d 42 61 72 48 65 69 67 |t by Get|MBarHeig|
|00000d70| 68 74 28 29 2e 0d 39 2f | 35 2f 39 34 20 64 67 70 |ht()..9/|5/94 dgp|
|00000d80| 20 72 65 6d 6f 76 65 64 | 20 61 73 73 75 6d 70 74 | removed| assumpt|
|00000d90| 69 6f 6e 20 69 6e 20 70 | 72 69 6e 74 66 27 73 20 |ion in p|rintf's |
|00000da0| 74 68 61 74 20 69 6e 74 | 3d 3d 73 68 6f 72 74 2e |that int|==short.|
|00000db0| 0d 2a 2f 0d 23 69 6e 63 | 6c 75 64 65 20 22 56 69 |.*/.#inc|lude "Vi|
|00000dc0| 64 65 6f 54 6f 6f 6c 62 | 6f 78 2e 68 22 0d 23 69 |deoToolb|ox.h".#i|
|00000dd0| 66 20 55 4e 49 56 45 52 | 53 41 4c 5f 48 45 41 44 |f UNIVER|SAL_HEAD|
|00000de0| 45 52 53 0d 09 23 69 6e | 63 6c 75 64 65 20 3c 4c |ERS..#in|clude <L|
|00000df0| 6f 77 4d 65 6d 2e 68 3e | 0d 23 65 6c 73 65 0d 09 |owMem.h>|.#else..|
|00000e00| 23 64 65 66 69 6e 65 20 | 4c 4d 47 65 74 4d 42 61 |#define |LMGetMBa|
|00000e10| 72 48 65 69 67 68 74 28 | 29 20 28 2a 20 28 73 68 |rHeight(|) (* (sh|
|00000e20| 6f 72 74 20 2a 29 20 30 | 78 30 42 41 41 29 0d 09 |ort *) 0|x0BAA)..|
|00000e30| 23 64 65 66 69 6e 65 20 | 4c 4d 53 65 74 4d 42 61 |#define |LMSetMBa|
|00000e40| 72 48 65 69 67 68 74 28 | 4d 42 61 72 48 65 69 67 |rHeight(|MBarHeig|
|00000e50| 68 74 56 61 6c 75 65 29 | 20 28 28 2a 20 28 73 68 |htValue)| ((* (sh|
|00000e60| 6f 72 74 20 2a 29 20 30 | 78 30 42 41 41 29 20 3d |ort *) 0|x0BAA) =|
|00000e70| 20 28 4d 42 61 72 48 65 | 69 67 68 74 56 61 6c 75 | (MBarHe|ightValu|
|00000e80| 65 29 29 0d 23 65 6e 64 | 69 66 0d 76 6f 69 64 20 |e)).#end|if.void |
|00000e90| 6d 61 69 6e 28 76 6f 69 | 64 29 3b 0d 42 6f 6f 6c |main(voi|d);.Bool|
|00000ea0| 65 61 6e 20 5a 6f 6f 6d | 65 64 4f 75 74 28 57 69 |ean Zoom|edOut(Wi|
|00000eb0| 6e 64 6f 77 50 74 72 20 | 77 29 3b 0d 23 64 65 66 |ndowPtr |w);.#def|
|00000ec0| 69 6e 65 20 52 41 49 53 | 45 5f 50 52 49 4f 52 49 |ine RAIS|E_PRIORI|
|00000ed0| 54 59 09 30 09 2f 2a 20 | 4f 70 74 69 6f 6e 61 6c |TY.0./* |Optional|
|00000ee0| 2e 20 43 6f 6e 74 72 61 | 72 79 20 74 6f 20 41 70 |. Contra|ry to Ap|
|00000ef0| 70 6c 65 27 73 20 72 75 | 6c 65 73 2c 09 2a 2f 0d |ple's ru|les,.*/.|
|00000f00| 09 09 09 09 09 09 09 2f | 2a 20 62 75 74 20 73 70 |......./|* but sp|
|00000f10| 65 65 64 73 20 75 70 20 | 74 68 65 20 64 69 73 70 |eeds up |the disp|
|00000f20| 6c 61 79 2e 20 2a 2f 0d | 23 64 65 66 69 6e 65 20 |lay. */.|#define |
|00000f30| 53 43 52 4f 4c 4c 5f 42 | 41 52 20 31 35 09 09 2f |SCROLL_B|AR 15../|
|00000f40| 2a 20 53 74 61 6e 64 61 | 72 64 20 77 69 64 74 68 |* Standa|rd width|
|00000f50| 20 6f 66 20 73 63 72 6f | 6c 6c 20 62 61 72 20 2a | of scro|ll bar *|
|00000f60| 2f 0d 23 64 65 66 69 6e | 65 20 57 41 49 54 5f 4e |/.#defin|e WAIT_N|
|00000f70| 45 58 54 5f 45 56 45 4e | 54 20 30 0d 0d 76 6f 69 |EXT_EVEN|T 0..voi|
|00000f80| 64 20 53 61 6e 64 73 74 | 6f 72 6d 28 76 6f 69 64 |d Sandst|orm(void|
|00000f90| 29 3b 0d 0d 76 6f 69 64 | 20 6d 61 69 6e 28 76 6f |);..void| main(vo|
|00000fa0| 69 64 29 0d 7b 0d 09 52 | 65 71 75 69 72 65 28 67 |id).{..R|equire(g|
|00000fb0| 65 73 74 61 6c 74 38 42 | 69 74 51 44 29 3b 0d 09 |estalt8B|itQD);..|
|00000fc0| 53 61 6e 64 73 74 6f 72 | 6d 28 29 3b 0d 7d 0d 76 |Sandstor|m();.}.v|
|00000fd0| 6f 69 64 20 53 61 6e 64 | 73 74 6f 72 6d 28 29 0d |oid Sand|storm().|
|00000fe0| 7b 0d 09 72 65 67 69 73 | 74 65 72 20 73 68 6f 72 |{..regis|ter shor|
|00000ff0| 74 20 2a 62 75 66 66 65 | 72 50 74 72 3b 0d 09 69 |t *buffe|rPtr;..i|
|00001000| 6e 74 20 69 3b 0d 09 73 | 74 61 74 69 63 20 63 68 |nt i;..s|tatic ch|
|00001010| 61 72 20 73 74 72 69 6e | 67 5b 34 30 5d 3b 0d 09 |ar strin|g[40];..|
|00001020| 73 74 61 74 69 63 20 50 | 69 78 4d 61 70 20 73 61 |static P|ixMap sa|
|00001030| 6e 64 3b 0d 09 52 65 63 | 74 20 72 2c 75 6e 7a 6f |nd;..Rec|t r,unzo|
|00001040| 6f 6d 65 64 52 65 63 74 | 2c 67 64 52 65 63 74 3b |omedRect|,gdRect;|
|00001050| 0d 09 47 44 48 61 6e 64 | 6c 65 20 64 65 76 69 63 |..GDHand|le devic|
|00001060| 65 3b 0d 09 57 69 6e 64 | 6f 77 50 74 72 20 77 69 |e;..Wind|owPtr wi|
|00001070| 6e 64 6f 77 2c 61 57 69 | 6e 64 6f 77 2c 6f 6c 64 |ndow,aWi|ndow,old|
|00001080| 50 6f 72 74 3b 0d 09 50 | 69 78 4d 61 70 20 2a 2a |Port;..P|ixMap **|
|00001090| 6d 79 50 69 78 4d 61 70 | 48 61 6e 64 6c 65 3b 0d |myPixMap|Handle;.|
|000010a0| 09 73 74 61 74 69 63 20 | 42 69 74 4d 61 70 20 62 |.static |BitMap b|
|000010b0| 75 66 66 65 72 3b 0d 09 | 6c 6f 6e 67 20 62 75 66 |uffer;..|long buf|
|000010c0| 66 65 72 42 79 74 65 73 | 3b 0d 09 73 69 7a 65 5f |ferBytes|;..size_|
|000010d0| 74 20 73 61 6e 64 42 79 | 74 65 73 3b 0d 09 42 6f |t sandBy|tes;..Bo|
|000010e0| 6f 6c 65 61 6e 20 64 6f | 6e 65 3d 30 2c 75 70 64 |olean do|ne=0,upd|
|000010f0| 61 74 65 3b 0d 09 6c 6f | 6e 67 20 72 65 53 69 7a |ate;..lo|ng reSiz|
|00001100| 65 3b 0d 09 69 6e 74 20 | 77 69 6e 64 6f 77 45 76 |e;..int |windowEv|
|00001110| 65 6e 74 3d 69 6e 44 65 | 73 6b 3b 0d 09 42 6f 6f |ent=inDe|sk;..Boo|
|00001120| 6c 65 61 6e 20 7a 6f 6f | 6d 65 64 4f 75 74 3b 0d |lean zoo|medOut;.|
|00001130| 09 57 53 74 61 74 65 44 | 61 74 61 20 2a 77 53 74 |.WStateD|ata *wSt|
|00001140| 61 74 65 44 61 74 61 3b | 0d 09 52 67 6e 48 61 6e |ateData;|..RgnHan|
|00001150| 64 6c 65 20 69 67 6e 6f | 72 65 52 67 6e 3b 0d 09 |dle igno|reRgn;..|
|00001160| 69 6e 74 20 70 69 78 65 | 6c 53 69 7a 65 3b 0d 09 |int pixe|lSize;..|
|00001170| 50 6f 69 6e 74 20 70 74 | 3b 0d 09 45 76 65 6e 74 |Point pt|;..Event|
|00001180| 52 65 63 6f 72 64 20 65 | 76 65 6e 74 3b 0d 09 0d |Record e|vent;...|
|00001190| 09 2f 2a 20 49 4e 49 54 | 49 41 4c 49 5a 45 20 51 |./* INIT|IALIZE Q|
|000011a0| 75 69 63 6b 44 72 61 77 | 20 2a 2f 0d 09 4d 61 78 |uickDraw| */..Max|
|000011b0| 41 70 70 6c 5a 6f 6e 65 | 28 29 3b 09 09 09 09 09 |ApplZone|();.....|
|000011c0| 09 2f 2a 20 45 78 70 61 | 6e 64 20 68 65 61 70 20 |./* Expa|nd heap |
|000011d0| 74 6f 20 74 68 65 20 6c | 69 6d 69 74 2e 20 2a 2f |to the l|imit. */|
|000011e0| 0d 09 49 6e 69 74 47 72 | 61 66 28 26 71 64 2e 74 |..InitGr|af(&qd.t|
|000011f0| 68 65 50 6f 72 74 29 3b | 0d 09 49 6e 69 74 46 6f |hePort);|..InitFo|
|00001200| 6e 74 73 28 29 3b 0d 09 | 49 6e 69 74 57 69 6e 64 |nts();..|InitWind|
|00001210| 6f 77 73 28 29 3b 0d 09 | 49 6e 69 74 43 75 72 73 |ows();..|InitCurs|
|00001220| 6f 72 28 29 3b 0d 09 47 | 65 74 50 6f 72 74 28 26 |or();..G|etPort(&|
|00001230| 6f 6c 64 50 6f 72 74 29 | 3b 0d 09 64 65 76 69 63 |oldPort)|;..devic|
|00001240| 65 3d 47 65 74 4d 61 69 | 6e 44 65 76 69 63 65 28 |e=GetMai|nDevice(|
|00001250| 29 3b 0d 0d 09 2f 2a 20 | 6f 70 65 6e 20 61 20 77 |);.../* |open a w|
|00001260| 69 6e 64 6f 77 20 6f 6e | 20 74 68 65 20 64 65 76 |indow on| the dev|
|00001270| 69 63 65 20 2a 2f 0d 09 | 69 67 6e 6f 72 65 52 67 |ice */..|ignoreRg|
|00001280| 6e 3d 4e 65 77 52 67 6e | 28 29 3b 0d 09 53 65 74 |n=NewRgn|();..Set|
|00001290| 52 65 63 74 28 26 72 2c | 30 2c 30 2c 31 39 32 2b |Rect(&r,|0,0,192+|
|000012a0| 53 43 52 4f 4c 4c 5f 42 | 41 52 2c 31 39 32 2b 53 |SCROLL_B|AR,192+S|
|000012b0| 43 52 4f 4c 4c 5f 42 41 | 52 29 3b 0d 09 43 65 6e |CROLL_BA|R);..Cen|
|000012c0| 74 65 72 52 65 63 74 49 | 6e 52 65 63 74 28 26 72 |terRectI|nRect(&r|
|000012d0| 2c 26 28 2a 64 65 76 69 | 63 65 29 2d 3e 67 64 52 |,&(*devi|ce)->gdR|
|000012e0| 65 63 74 29 3b 0d 09 77 | 69 6e 64 6f 77 3d 4e 65 |ect);..w|indow=Ne|
|000012f0| 77 43 57 69 6e 64 6f 77 | 28 4e 55 4c 4c 0d 09 09 |wCWindow|(NULL...|
|00001300| 2c 26 72 2c 22 5c 70 4e | 6f 77 20 63 6f 6d 70 75 |,&r,"\pN|ow compu|
|00001310| 74 69 6e 67 20 6e 6f 69 | 73 65 20 2e 2e 2e 22 2c |ting noi|se ...",|
|00001320| 54 52 55 45 2c 7a 6f 6f | 6d 44 6f 63 50 72 6f 63 |TRUE,zoo|mDocProc|
|00001330| 2c 28 57 69 6e 64 6f 77 | 50 74 72 29 20 2d 31 4c |,(Window|Ptr) -1L|
|00001340| 2c 54 52 55 45 2c 30 4c | 29 3b 0d 09 6d 79 50 69 |,TRUE,0L|);..myPi|
|00001350| 78 4d 61 70 48 61 6e 64 | 6c 65 20 3d 20 28 28 43 |xMapHand|le = ((C|
|00001360| 47 72 61 66 50 74 72 29 | 77 69 6e 64 6f 77 29 2d |GrafPtr)|window)-|
|00001370| 3e 70 6f 72 74 50 69 78 | 4d 61 70 3b 0d 09 4d 6f |>portPix|Map;..Mo|
|00001380| 76 65 48 48 69 28 28 48 | 61 6e 64 6c 65 29 20 6d |veHHi((H|andle) m|
|00001390| 79 50 69 78 4d 61 70 48 | 61 6e 64 6c 65 29 3b 0d |yPixMapH|andle);.|
|000013a0| 09 48 4c 6f 63 6b 28 28 | 48 61 6e 64 6c 65 29 20 |.HLock((|Handle) |
|000013b0| 6d 79 50 69 78 4d 61 70 | 48 61 6e 64 6c 65 29 3b |myPixMap|Handle);|
|000013c0| 0d 0d 09 2f 2a 20 43 6f | 6d 70 75 74 65 20 6e 6f |.../* Co|mpute no|
|000013d0| 69 73 65 20 2a 2f 0d 09 | 2f 2a 20 61 6c 6c 6f 63 |ise */..|/* alloc|
|000013e0| 61 74 65 20 62 75 66 66 | 65 72 20 42 69 74 4d 61 |ate buff|er BitMa|
|000013f0| 70 20 2a 2f 0d 09 62 75 | 66 66 65 72 2e 72 6f 77 |p */..bu|ffer.row|
|00001400| 42 79 74 65 73 3d 31 30 | 32 34 3b 0d 09 4d 61 78 |Bytes=10|24;..Max|
|00001410| 41 70 70 6c 5a 6f 6e 65 | 28 29 3b 0d 09 62 75 66 |ApplZone|();..buf|
|00001420| 66 65 72 42 79 74 65 73 | 20 3d 20 46 72 65 65 4d |ferBytes| = FreeM|
|00001430| 65 6d 28 29 3b 0d 09 62 | 75 66 66 65 72 42 79 74 |em();..b|ufferByt|
|00001440| 65 73 2d 3d 31 30 30 30 | 30 30 4c 3b 09 2f 2a 20 |es-=1000|00L;./* |
|00001450| 47 72 61 62 20 6d 6f 73 | 74 20 6f 66 20 61 76 61 |Grab mos|t of ava|
|00001460| 69 6c 61 62 6c 65 20 73 | 70 61 63 65 2e 20 2a 2f |ilable s|pace. */|
|00001470| 0d 09 62 75 66 66 65 72 | 42 79 74 65 73 20 2d 3d |..buffer|Bytes -=|
|00001480| 20 62 75 66 66 65 72 42 | 79 74 65 73 25 62 75 66 | bufferB|ytes%buf|
|00001490| 66 65 72 2e 72 6f 77 42 | 79 74 65 73 3b 0d 09 62 |fer.rowB|ytes;..b|
|000014a0| 75 66 66 65 72 2e 62 61 | 73 65 41 64 64 72 3d 4e |uffer.ba|seAddr=N|
|000014b0| 55 4c 4c 3b 0d 09 66 6f | 72 28 3b 62 75 66 66 65 |ULL;..fo|r(;buffe|
|000014c0| 72 42 79 74 65 73 3e 30 | 3b 62 75 66 66 65 72 42 |rBytes>0|;bufferB|
|000014d0| 79 74 65 73 20 2d 3d 20 | 62 75 66 66 65 72 2e 72 |ytes -= |buffer.r|
|000014e0| 6f 77 42 79 74 65 73 29 | 7b 0d 09 09 62 75 66 66 |owBytes)|{...buff|
|000014f0| 65 72 2e 62 61 73 65 41 | 64 64 72 20 3d 20 4e 65 |er.baseA|ddr = Ne|
|00001500| 77 50 74 72 28 62 75 66 | 66 65 72 42 79 74 65 73 |wPtr(buf|ferBytes|
|00001510| 29 3b 0d 09 09 69 66 20 | 28 62 75 66 66 65 72 2e |);...if |(buffer.|
|00001520| 62 61 73 65 41 64 64 72 | 21 3d 4e 55 4c 4c 29 62 |baseAddr|!=NULL)b|
|00001530| 72 65 61 6b 3b 0d 09 7d | 0d 09 69 66 28 62 75 66 |reak;..}|..if(buf|
|00001540| 66 65 72 2e 62 61 73 65 | 41 64 64 72 3d 3d 4e 55 |fer.base|Addr==NU|
|00001550| 4c 4c 29 50 72 69 6e 74 | 66 45 78 69 74 28 22 5c |LL)Print|fExit("\|
|00001560| 30 30 37 53 6f 72 72 79 | 2c 20 6e 6f 74 20 65 6e |007Sorry|, not en|
|00001570| 6f 75 67 68 20 6d 65 6d | 6f 72 79 20 66 6f 72 20 |ough mem|ory for |
|00001580| 62 75 66 66 65 72 73 2e | 5c 6e 22 29 3b 0d 09 53 |buffers.|\n");..S|
|00001590| 65 74 52 65 63 74 28 26 | 62 75 66 66 65 72 2e 62 |etRect(&|buffer.b|
|000015a0| 6f 75 6e 64 73 2c 30 2c | 30 2c 62 75 66 66 65 72 |ounds,0,|0,buffer|
|000015b0| 2e 72 6f 77 42 79 74 65 | 73 2a 38 4c 2c 62 75 66 |.rowByte|s*8L,buf|
|000015c0| 66 65 72 42 79 74 65 73 | 2f 62 75 66 66 65 72 2e |ferBytes|/buffer.|
|000015d0| 72 6f 77 42 79 74 65 73 | 29 3b 0d 0d 09 2f 2a 20 |rowBytes|);.../* |
|000015e0| 46 69 6c 6c 20 62 75 66 | 66 65 72 20 77 69 74 68 |Fill buf|fer with|
|000015f0| 20 6e 6f 69 73 65 2e 20 | 2a 2f 0d 09 62 75 66 66 | noise. |*/..buff|
|00001600| 65 72 50 74 72 20 3d 20 | 28 73 68 6f 72 74 20 2a |erPtr = |(short *|
|00001610| 29 20 62 75 66 66 65 72 | 2e 62 61 73 65 41 64 64 |) buffer|.baseAdd|
|00001620| 72 3b 0d 09 52 61 6e 64 | 46 69 6c 6c 28 62 75 66 |r;..Rand|Fill(buf|
|00001630| 66 65 72 2e 62 61 73 65 | 41 64 64 72 2c 62 75 66 |fer.base|Addr,buf|
|00001640| 66 65 72 42 79 74 65 73 | 29 3b 0d 0d 09 2f 2a 20 |ferBytes|);.../* |
|00001650| 53 68 6f 77 20 6e 6f 69 | 73 65 20 2a 2f 0d 09 53 |Show noi|se */..S|
|00001660| 65 74 50 6f 72 74 28 77 | 69 6e 64 6f 77 29 3b 0d |etPort(w|indow);.|
|00001670| 09 72 65 53 69 7a 65 3d | 30 3b 0d 09 77 68 69 6c |.reSize=|0;..whil|
|00001680| 65 20 28 31 29 20 7b 0d | 09 09 77 53 74 61 74 65 |e (1) {.|..wState|
|00001690| 44 61 74 61 3d 28 2a 28 | 28 57 53 74 61 74 65 44 |Data=(*(|(WStateD|
|000016a0| 61 74 61 20 2a 2a 29 28 | 28 57 69 6e 64 6f 77 50 |ata **)(|(WindowP|
|000016b0| 65 65 6b 29 77 69 6e 64 | 6f 77 29 2d 3e 64 61 74 |eek)wind|ow)->dat|
|000016c0| 61 48 61 6e 64 6c 65 29 | 29 3b 0d 09 09 75 6e 7a |aHandle)|);...unz|
|000016d0| 6f 6f 6d 65 64 52 65 63 | 74 3d 77 53 74 61 74 65 |oomedRec|t=wState|
|000016e0| 44 61 74 61 2d 3e 75 73 | 65 72 53 74 61 74 65 3b |Data->us|erState;|
|000016f0| 0d 09 09 7a 6f 6f 6d 65 | 64 4f 75 74 3d 5a 6f 6f |...zoome|dOut=Zoo|
|00001700| 6d 65 64 4f 75 74 28 77 | 69 6e 64 6f 77 29 3b 0d |medOut(w|indow);.|
|00001710| 09 09 69 66 28 72 65 53 | 69 7a 65 29 7b 0d 09 09 |..if(reS|ize){...|
|00001720| 09 53 69 7a 65 57 69 6e | 64 6f 77 28 77 69 6e 64 |.SizeWin|dow(wind|
|00001730| 6f 77 2c 4c 6f 57 6f 72 | 64 28 72 65 53 69 7a 65 |ow,LoWor|d(reSize|
|00001740| 29 2c 48 69 57 6f 72 64 | 28 72 65 53 69 7a 65 29 |),HiWord|(reSize)|
|00001750| 2c 54 52 55 45 29 3b 0d | 09 09 09 72 65 53 69 7a |,TRUE);.|...reSiz|
|00001760| 65 3d 30 4c 3b 0d 09 09 | 7d 0d 09 09 64 65 76 69 |e=0L;...|}...devi|
|00001770| 63 65 3d 47 65 74 57 69 | 6e 64 6f 77 44 65 76 69 |ce=GetWi|ndowDevi|
|00001780| 63 65 28 77 69 6e 64 6f | 77 29 3b 0d 09 09 69 66 |ce(windo|w);...if|
|00001790| 28 64 65 76 69 63 65 3d | 3d 4e 55 4c 4c 29 7b 0d |(device=|=NULL){.|
|000017a0| 09 09 09 64 6f 6e 65 3d | 31 3b 0d 09 09 09 62 72 |...done=|1;....br|
|000017b0| 65 61 6b 3b 0d 09 09 7d | 0d 09 09 72 3d 77 69 6e |eak;...}|...r=win|
|000017c0| 64 6f 77 2d 3e 70 6f 72 | 74 52 65 63 74 3b 0d 09 |dow->por|tRect;..|
|000017d0| 09 4c 6f 63 61 6c 54 6f | 47 6c 6f 62 61 6c 52 65 |.LocalTo|GlobalRe|
|000017e0| 63 74 28 26 72 29 3b 0d | 09 09 67 64 52 65 63 74 |ct(&r);.|..gdRect|
|000017f0| 3d 28 2a 64 65 76 69 63 | 65 29 2d 3e 67 64 52 65 |=(*devic|e)->gdRe|
|00001800| 63 74 3b 0d 09 09 2f 2a | 20 6c 65 61 76 65 20 72 |ct;.../*| leave r|
|00001810| 6f 6f 6d 20 66 6f 72 20 | 77 69 6e 64 6f 77 27 73 |oom for |window's|
|00001820| 20 74 69 74 6c 65 20 62 | 61 72 20 2a 2f 0d 09 09 | title b|ar */...|
|00001830| 67 64 52 65 63 74 2e 74 | 6f 70 2b 3d 72 2e 74 6f |gdRect.t|op+=r.to|
|00001840| 70 2d 31 2d 28 2a 28 28 | 57 69 6e 64 6f 77 50 65 |p-1-(*((|WindowPe|
|00001850| 65 6b 29 77 69 6e 64 6f | 77 29 2d 3e 73 74 72 75 |ek)windo|w)->stru|
|00001860| 63 52 67 6e 29 2d 3e 72 | 67 6e 42 42 6f 78 2e 74 |cRgn)->r|gnBBox.t|
|00001870| 6f 70 3b 0d 09 09 2f 2a | 20 6c 65 61 76 65 20 72 |op;.../*| leave r|
|00001880| 6f 6f 6d 20 66 6f 72 20 | 6d 65 6e 75 20 62 61 72 |oom for |menu bar|
|00001890| 20 2a 2f 0d 09 09 69 66 | 28 64 65 76 69 63 65 3d | */...if|(device=|
|000018a0| 3d 47 65 74 4d 61 69 6e | 44 65 76 69 63 65 28 29 |=GetMain|Device()|
|000018b0| 29 67 64 52 65 63 74 2e | 74 6f 70 2b 3d 4c 4d 47 |)gdRect.|top+=LMG|
|000018c0| 65 74 4d 42 61 72 48 65 | 69 67 68 74 28 29 3b 0d |etMBarHe|ight();.|
|000018d0| 09 09 53 65 63 74 52 65 | 63 74 28 26 67 64 52 65 |..SectRe|ct(&gdRe|
|000018e0| 63 74 2c 26 72 2c 26 72 | 29 3b 0d 09 09 70 69 78 |ct,&r,&r|);...pix|
|000018f0| 65 6c 53 69 7a 65 3d 28 | 2a 2a 28 2a 2a 64 65 76 |elSize=(|**(**dev|
|00001900| 69 63 65 29 2e 67 64 50 | 4d 61 70 29 2e 70 69 78 |ice).gdP|Map).pix|
|00001910| 65 6c 53 69 7a 65 3b 0d | 09 09 69 3d 72 2e 6c 65 |elSize;.|..i=r.le|
|00001920| 66 74 2d 28 2a 64 65 76 | 69 63 65 29 2d 3e 67 64 |ft-(*dev|ice)->gd|
|00001930| 52 65 63 74 2e 6c 65 66 | 74 3b 0d 09 09 69 3d 28 |Rect.lef|t;...i=(|
|00001940| 69 2a 70 69 78 65 6c 53 | 69 7a 65 2b 31 36 20 26 |i*pixelS|ize+16 &|
|00001950| 20 7e 33 31 29 2f 70 69 | 78 65 6c 53 69 7a 65 2d | ~31)/pi|xelSize-|
|00001960| 69 3b 09 2f 2a 20 6d 6f | 76 65 20 74 6f 20 6e 65 |i;./* mo|ve to ne|
|00001970| 61 72 65 73 74 20 33 32 | 2d 62 69 74 20 62 6f 75 |arest 32|-bit bou|
|00001980| 6e 64 61 72 79 20 2a 2f | 0d 09 09 4f 66 66 73 65 |ndary */|...Offse|
|00001990| 74 52 65 63 74 28 26 72 | 2c 69 2c 30 29 3b 09 09 |tRect(&r|,i,0);..|
|000019a0| 09 09 09 09 2f 2a 20 41 | 73 73 75 6d 65 73 20 77 |..../* A|ssumes w|
|000019b0| 69 6e 64 6f 77 20 69 73 | 20 3e 31 36 20 62 69 74 |indow is| >16 bit|
|000019c0| 73 20 77 69 64 65 20 2a | 2f 0d 09 09 53 65 63 74 |s wide *|/...Sect|
|000019d0| 52 65 63 74 28 26 67 64 | 52 65 63 74 2c 26 72 2c |Rect(&gd|Rect,&r,|
|000019e0| 26 72 29 3b 0d 09 09 4d | 6f 76 65 57 69 6e 64 6f |&r);...M|oveWindo|
|000019f0| 77 28 77 69 6e 64 6f 77 | 2c 72 2e 6c 65 66 74 2c |w(window|,r.left,|
|00001a00| 72 2e 74 6f 70 2c 54 52 | 55 45 29 3b 0d 09 09 4f |r.top,TR|UE);...O|
|00001a10| 66 66 73 65 74 52 65 63 | 74 28 26 72 2c 2d 72 2e |ffsetRec|t(&r,-r.|
|00001a20| 6c 65 66 74 2c 2d 72 2e | 74 6f 70 29 3b 0d 09 09 |left,-r.|top);...|
|00001a30| 73 61 6e 64 20 3d 20 2a | 2a 28 2a 64 65 76 69 63 |sand = *|*(*devic|
|00001a40| 65 29 2d 3e 67 64 50 4d | 61 70 3b 09 2f 2a 20 49 |e)->gdPM|ap;./* I|
|00001a50| 6e 69 74 69 61 6c 69 7a | 65 20 50 69 78 4d 61 70 |nitializ|e PixMap|
|00001a60| 20 66 69 65 6c 64 73 20 | 66 72 6f 6d 20 73 63 72 | fields |from scr|
|00001a70| 65 65 6e 20 2a 2f 0d 09 | 09 73 61 6e 64 2e 62 6f |een */..|.sand.bo|
|00001a80| 75 6e 64 73 3d 72 3b 0d | 09 09 73 61 6e 64 2e 62 |unds=r;.|..sand.b|
|00001a90| 6f 75 6e 64 73 2e 72 69 | 67 68 74 20 20 2d 3d 53 |ounds.ri|ght -=S|
|00001aa0| 43 52 4f 4c 4c 5f 42 41 | 52 3b 09 2f 2a 20 4c 65 |CROLL_BA|R;./* Le|
|00001ab0| 61 76 65 20 72 6f 6f 6d | 20 66 6f 72 20 74 68 65 |ave room| for the|
|00001ac0| 20 73 63 72 6f 6c 6c 20 | 62 61 72 73 20 2a 2f 0d | scroll |bars */.|
|00001ad0| 09 09 73 61 6e 64 2e 62 | 6f 75 6e 64 73 2e 62 6f |..sand.b|ounds.bo|
|00001ae0| 74 74 6f 6d 20 2d 3d 53 | 43 52 4f 4c 4c 5f 42 41 |ttom -=S|CROLL_BA|
|00001af0| 52 3b 0d 09 09 73 61 6e | 64 2e 62 6f 75 6e 64 73 |R;...san|d.bounds|
|00001b00| 2e 72 69 67 68 74 3d 28 | 73 61 6e 64 2e 62 6f 75 |.right=(|sand.bou|
|00001b10| 6e 64 73 2e 72 69 67 68 | 74 2a 73 61 6e 64 2e 70 |nds.righ|t*sand.p|
|00001b20| 69 78 65 6c 53 69 7a 65 | 2b 31 34 20 26 20 7e 33 |ixelSize|+14 & ~3|
|00001b30| 31 29 2f 73 61 6e 64 2e | 70 69 78 65 6c 53 69 7a |1)/sand.|pixelSiz|
|00001b40| 65 3b 0d 09 09 09 2f 2a | 20 72 6f 75 6e 64 20 74 |e;..../*| round t|
|00001b50| 6f 20 6d 75 6c 74 69 70 | 6c 65 20 6f 66 20 33 32 |o multip|le of 32|
|00001b60| 20 62 69 74 73 20 2a 2f | 0d 09 09 69 66 28 73 61 | bits */|...if(sa|
|00001b70| 6e 64 2e 62 6f 75 6e 64 | 73 2e 72 69 67 68 74 3c |nd.bound|s.right<|
|00001b80| 33 32 29 73 61 6e 64 2e | 62 6f 75 6e 64 73 2e 72 |32)sand.|bounds.r|
|00001b90| 69 67 68 74 3d 33 32 3b | 0d 09 09 73 61 6e 64 2e |ight=32;|...sand.|
|00001ba0| 72 6f 77 42 79 74 65 73 | 20 3d 20 28 73 61 6e 64 |rowBytes| = (sand|
|00001bb0| 2e 62 6f 75 6e 64 73 2e | 72 69 67 68 74 2a 73 61 |.bounds.|right*sa|
|00001bc0| 6e 64 2e 70 69 78 65 6c | 53 69 7a 65 20 2b 20 33 |nd.pixel|Size + 3|
|00001bd0| 31 20 26 20 7e 33 31 29 | 2f 38 3b 0d 09 09 09 2f |1 & ~31)|/8;..../|
|00001be0| 2a 20 72 6f 75 6e 64 20 | 75 70 20 74 6f 20 6d 75 |* round |up to mu|
|00001bf0| 6c 74 69 70 6c 65 20 6f | 66 20 33 32 20 62 69 74 |ltiple o|f 32 bit|
|00001c00| 73 20 28 72 65 64 75 6e | 64 61 6e 74 29 20 2a 2f |s (redun|dant) */|
|00001c10| 0d 09 09 73 61 6e 64 42 | 79 74 65 73 20 3d 20 28 |...sandB|ytes = (|
|00001c20| 73 69 7a 65 5f 74 29 20 | 73 61 6e 64 2e 72 6f 77 |size_t) |sand.row|
|00001c30| 42 79 74 65 73 20 2a 20 | 28 73 69 7a 65 5f 74 29 |Bytes * |(size_t)|
|00001c40| 20 73 61 6e 64 2e 62 6f | 75 6e 64 73 2e 62 6f 74 | sand.bo|unds.bot|
|00001c50| 74 6f 6d 3b 0d 09 09 69 | 66 28 62 75 66 66 65 72 |tom;...i|f(buffer|
|00001c60| 42 79 74 65 73 2f 32 20 | 3c 20 73 61 6e 64 42 79 |Bytes/2 |< sandBy|
|00001c70| 74 65 73 29 0d 09 09 7b | 0d 09 09 09 2f 2a 20 72 |tes)...{|..../* r|
|00001c80| 65 73 74 72 69 63 74 20 | 68 65 69 67 68 74 20 62 |estrict |height b|
|00001c90| 79 20 61 6d 6f 75 6e 74 | 20 6f 66 20 6e 6f 69 73 |y amount| of nois|
|00001ca0| 65 20 61 76 61 69 6c 61 | 62 6c 65 20 2a 2f 0d 09 |e availa|ble */..|
|00001cb0| 09 09 73 61 6e 64 2e 62 | 6f 75 6e 64 73 2e 62 6f |..sand.b|ounds.bo|
|00001cc0| 74 74 6f 6d 3d 62 75 66 | 66 65 72 42 79 74 65 73 |ttom=buf|ferBytes|
|00001cd0| 2f 73 61 6e 64 2e 72 6f | 77 42 79 74 65 73 2f 32 |/sand.ro|wBytes/2|
|00001ce0| 3b 0d 09 09 09 73 61 6e | 64 42 79 74 65 73 20 3d |;....san|dBytes =|
|00001cf0| 20 28 73 69 7a 65 5f 74 | 29 20 73 61 6e 64 2e 72 | (size_t|) sand.r|
|00001d00| 6f 77 42 79 74 65 73 20 | 2a 20 28 73 69 7a 65 5f |owBytes |* (size_|
|00001d10| 74 29 20 73 61 6e 64 2e | 62 6f 75 6e 64 73 2e 62 |t) sand.|bounds.b|
|00001d20| 6f 74 74 6f 6d 3b 0d 09 | 09 7d 09 0d 09 09 73 61 |ottom;..|.}....sa|
|00001d30| 6e 64 2e 72 6f 77 42 79 | 74 65 73 20 7c 3d 20 30 |nd.rowBy|tes |= 0|
|00001d40| 78 38 30 30 30 3b 09 2f | 2a 20 4d 61 72 6b 20 69 |x8000;./|* Mark i|
|00001d50| 74 20 61 73 20 61 20 50 | 69 78 4d 61 70 20 2a 2f |t as a P|ixMap */|
|00001d60| 0d 09 09 73 61 6e 64 2e | 70 6d 56 65 72 73 69 6f |...sand.|pmVersio|
|00001d70| 6e 3d 30 3b 0d 09 09 73 | 61 6e 64 2e 70 61 63 6b |n=0;...s|and.pack|
|00001d80| 54 79 70 65 3d 30 3b 0d | 09 09 73 61 6e 64 2e 70 |Type=0;.|..sand.p|
|00001d90| 61 63 6b 53 69 7a 65 3d | 30 3b 0d 09 09 73 61 6e |ackSize=|0;...san|
|00001da0| 64 2e 70 6c 61 6e 65 42 | 79 74 65 73 3d 30 3b 0d |d.planeB|ytes=0;.|
|00001db0| 09 09 73 61 6e 64 2e 70 | 6d 52 65 73 65 72 76 65 |..sand.p|mReserve|
|00001dc0| 64 3d 30 3b 0d 09 09 53 | 69 7a 65 57 69 6e 64 6f |d=0;...S|izeWindo|
|00001dd0| 77 28 77 69 6e 64 6f 77 | 0d 09 09 09 2c 73 61 6e |w(window|....,san|
|00001de0| 64 2e 62 6f 75 6e 64 73 | 2e 72 69 67 68 74 2b 53 |d.bounds|.right+S|
|00001df0| 43 52 4f 4c 4c 5f 42 41 | 52 2c 73 61 6e 64 2e 62 |CROLL_BA|R,sand.b|
|00001e00| 6f 75 6e 64 73 2e 62 6f | 74 74 6f 6d 2b 53 43 52 |ounds.bo|ttom+SCR|
|00001e10| 4f 4c 4c 5f 42 41 52 2c | 54 52 55 45 29 3b 0d 09 |OLL_BAR,|TRUE);..|
|00001e20| 09 45 72 61 73 65 52 65 | 63 74 28 26 77 69 6e 64 |.EraseRe|ct(&wind|
|00001e30| 6f 77 2d 3e 70 6f 72 74 | 52 65 63 74 29 3b 0d 09 |ow->port|Rect);..|
|00001e40| 09 44 72 61 77 47 72 6f | 77 49 63 6f 6e 28 77 69 |.DrawGro|wIcon(wi|
|00001e50| 6e 64 6f 77 29 3b 0d 09 | 09 69 66 28 7a 6f 6f 6d |ndow);..|.if(zoom|
|00001e60| 65 64 4f 75 74 20 26 26 | 20 77 69 6e 64 6f 77 45 |edOut &&| windowE|
|00001e70| 76 65 6e 74 21 3d 69 6e | 47 72 6f 77 20 26 26 20 |vent!=in|Grow && |
|00001e80| 77 69 6e 64 6f 77 45 76 | 65 6e 74 21 3d 69 6e 44 |windowEv|ent!=inD|
|00001e90| 72 61 67 29 7b 0d 09 09 | 09 77 53 74 61 74 65 44 |rag){...|.wStateD|
|00001ea0| 61 74 61 3d 28 2a 28 28 | 57 53 74 61 74 65 44 61 |ata=(*((|WStateDa|
|00001eb0| 74 61 20 2a 2a 29 28 28 | 57 69 6e 64 6f 77 50 65 |ta **)((|WindowPe|
|00001ec0| 65 6b 29 77 69 6e 64 6f | 77 29 2d 3e 64 61 74 61 |ek)windo|w)->data|
|00001ed0| 48 61 6e 64 6c 65 29 29 | 3b 0d 09 09 09 72 3d 77 |Handle))|;....r=w|
|00001ee0| 69 6e 64 6f 77 2d 3e 70 | 6f 72 74 52 65 63 74 3b |indow->p|ortRect;|
|00001ef0| 0d 09 09 09 4c 6f 63 61 | 6c 54 6f 47 6c 6f 62 61 |....Loca|lToGloba|
|00001f00| 6c 52 65 63 74 28 26 72 | 29 3b 0d 09 09 09 72 2e |lRect(&r|);....r.|
|00001f10| 6c 65 66 74 2d 3d 31 3b | 0d 09 09 09 72 2e 72 69 |left-=1;|....r.ri|
|00001f20| 67 68 74 2d 3d 32 3b 0d | 09 09 09 77 53 74 61 74 |ght-=2;.|...wStat|
|00001f30| 65 44 61 74 61 2d 3e 73 | 74 64 53 74 61 74 65 3d |eData->s|tdState=|
|00001f40| 72 3b 09 09 0d 09 09 09 | 77 53 74 61 74 65 44 61 |r;......|wStateDa|
|00001f50| 74 61 2d 3e 75 73 65 72 | 53 74 61 74 65 3d 75 6e |ta->user|State=un|
|00001f60| 7a 6f 6f 6d 65 64 52 65 | 63 74 3b 0d 09 09 7d 0d |zoomedRe|ct;...}.|
|00001f70| 09 09 73 70 72 69 6e 74 | 66 28 73 74 72 69 6e 67 |..sprint|f(string|
|00001f80| 2c 22 25 64 78 25 64 78 | 25 64 20 62 69 74 73 22 |,"%dx%dx|%d bits"|
|00001f90| 0d 09 09 09 2c 28 69 6e | 74 29 73 61 6e 64 2e 62 |....,(in|t)sand.b|
|00001fa0| 6f 75 6e 64 73 2e 72 69 | 67 68 74 2c 28 69 6e 74 |ounds.ri|ght,(int|
|00001fb0| 29 73 61 6e 64 2e 62 6f | 75 6e 64 73 2e 62 6f 74 |)sand.bo|unds.bot|
|00001fc0| 74 6f 6d 2c 28 69 6e 74 | 29 73 61 6e 64 2e 70 69 |tom,(int|)sand.pi|
|00001fd0| 78 65 6c 53 69 7a 65 29 | 3b 0d 09 09 53 65 74 57 |xelSize)|;...SetW|
|00001fe0| 54 69 74 6c 65 28 77 69 | 6e 64 6f 77 2c 63 32 70 |Title(wi|ndow,c2p|
|00001ff0| 73 74 72 28 73 74 72 69 | 6e 67 29 29 3b 0d 09 09 |str(stri|ng));...|
|00002000| 46 6c 75 73 68 45 76 65 | 6e 74 73 28 65 76 65 72 |FlushEve|nts(ever|
|00002010| 79 45 76 65 6e 74 2c 30 | 29 3b 0d 09 09 44 69 66 |yEvent,0|);...Dif|
|00002020| 66 52 67 6e 28 47 65 74 | 47 72 61 79 52 67 6e 28 |fRgn(Get|GrayRgn(|
|00002030| 29 2c 28 28 57 69 6e 64 | 6f 77 50 65 65 6b 29 77 |),((Wind|owPeek)w|
|00002040| 69 6e 64 6f 77 29 2d 3e | 73 74 72 75 63 52 67 6e |indow)->|strucRgn|
|00002050| 2c 69 67 6e 6f 72 65 52 | 67 6e 29 3b 0d 09 09 77 |,ignoreR|gn);...w|
|00002060| 68 69 6c 65 20 28 31 29 | 20 7b 0d 09 09 09 75 70 |hile (1)| {....up|
|00002070| 64 61 74 65 3d 30 3b 09 | 09 09 2f 2a 20 64 6f 6e |date=0;.|../* don|
|00002080| 27 74 20 75 70 64 61 74 | 65 20 77 69 6e 64 6f 77 |'t updat|e window|
|00002090| 20 66 72 61 6d 65 20 75 | 6e 6c 65 73 73 20 6e 65 | frame u|nless ne|
|000020a0| 63 65 73 73 61 72 79 20 | 2a 2f 0d 09 09 09 23 69 |cessary |*/....#i|
|000020b0| 66 20 52 41 49 53 45 5f | 50 52 49 4f 52 49 54 59 |f RAISE_|PRIORITY|
|000020c0| 0d 09 09 09 09 53 65 74 | 50 72 69 6f 72 69 74 79 |.....Set|Priority|
|000020d0| 28 32 29 3b 09 2f 2a 20 | 47 65 74 20 6d 6f 72 65 |(2);./* |Get more|
|000020e0| 20 73 70 65 65 64 20 62 | 79 20 73 75 70 70 72 65 | speed b|y suppre|
|000020f0| 73 73 69 6e 67 20 6b 65 | 79 62 6f 61 72 64 2c 20 |ssing ke|yboard, |
|00002100| 6d 6f 75 73 65 2c 20 61 | 6e 64 20 74 69 63 6b 73 |mouse, a|nd ticks|
|00002110| 2e 20 2a 2f 0d 09 09 09 | 23 65 6e 64 69 66 0d 09 |. */....|#endif..|
|00002120| 09 09 73 61 6e 64 2e 62 | 61 73 65 41 64 64 72 20 |..sand.b|aseAddr |
|00002130| 3d 20 62 75 66 66 65 72 | 2e 62 61 73 65 41 64 64 |= buffer|.baseAdd|
|00002140| 72 3b 0d 09 09 09 2f 2a | 20 63 68 6f 6f 73 65 20 |r;..../*| choose |
|00002150| 67 72 61 69 6e 20 74 68 | 61 74 20 77 6f 6e 27 74 |grain th|at won't|
|00002160| 20 6f 76 65 72 66 6c 6f | 77 20 73 68 6f 72 74 20 | overflo|w short |
|00002170| 61 72 67 75 6d 65 6e 74 | 20 74 6f 20 6e 72 61 6e |argument| to nran|
|00002180| 64 28 29 20 2a 2f 0d 09 | 09 09 69 3d 28 62 75 66 |d() */..|..i=(buf|
|00002190| 66 65 72 42 79 74 65 73 | 2f 53 48 52 54 5f 4d 41 |ferBytes|/SHRT_MA|
|000021a0| 58 2b 33 29 26 7e 33 3b | 09 2f 2a 20 72 6f 75 6e |X+3)&~3;|./* roun|
|000021b0| 64 20 75 70 20 74 6f 20 | 6d 75 6c 74 69 70 6c 65 |d up to |multiple|
|000021c0| 20 6f 66 20 34 20 2a 2f | 0d 09 09 09 73 61 6e 64 | of 4 */|....sand|
|000021d0| 2e 62 61 73 65 41 64 64 | 72 20 2b 3d 20 6e 72 61 |.baseAdd|r += nra|
|000021e0| 6e 64 28 28 62 75 66 66 | 65 72 42 79 74 65 73 2d |nd((buff|erBytes-|
|000021f0| 73 61 6e 64 42 79 74 65 | 73 29 2f 69 29 2a 28 6c |sandByte|s)/i)*(l|
|00002200| 6f 6e 67 29 69 3b 0d 09 | 09 09 69 66 28 28 28 57 |ong)i;..|..if(((W|
|00002210| 69 6e 64 6f 77 50 65 65 | 6b 29 77 69 6e 64 6f 77 |indowPee|k)window|
|00002220| 29 2d 3e 68 69 6c 69 74 | 65 64 29 7b 0d 09 09 09 |)->hilit|ed){....|
|00002230| 09 43 6f 70 79 42 69 74 | 73 51 75 69 63 6b 6c 79 |.CopyBit|sQuickly|
|00002240| 28 28 42 69 74 4d 61 70 | 20 2a 29 26 73 61 6e 64 |((BitMap| *)&sand|
|00002250| 2c 28 42 69 74 4d 61 70 | 20 2a 29 2a 6d 79 50 69 |,(BitMap| *)*myPi|
|00002260| 78 4d 61 70 48 61 6e 64 | 6c 65 0d 09 09 09 09 09 |xMapHand|le......|
|00002270| 2c 26 73 61 6e 64 2e 62 | 6f 75 6e 64 73 2c 26 73 |,&sand.b|ounds,&s|
|00002280| 61 6e 64 2e 62 6f 75 6e | 64 73 2c 73 72 63 43 6f |and.boun|ds,srcCo|
|00002290| 70 79 2c 4e 55 4c 4c 29 | 3b 0d 09 09 09 09 2f 2f |py,NULL)|;.....//|
|000022a0| 20 4e 6f 74 69 66 79 20 | 6e 6f 6e 73 74 61 6e 64 | Notify |nonstand|
|000022b0| 61 72 64 20 76 69 64 65 | 6f 20 64 65 76 69 63 65 |ard vide|o device|
|000022c0| 73 20 74 68 61 74 20 70 | 69 78 65 6c 73 20 68 61 |s that p|ixels ha|
|000022d0| 76 65 20 63 68 61 6e 67 | 65 64 2e 0d 09 09 09 09 |ve chang|ed......|
|000022e0| 70 74 2e 68 3d 2d 28 2a | 6d 79 50 69 78 4d 61 70 |pt.h=-(*|myPixMap|
|000022f0| 48 61 6e 64 6c 65 29 2d | 3e 62 6f 75 6e 64 73 2e |Handle)-|>bounds.|
|00002300| 6c 65 66 74 3b 0d 09 09 | 09 09 70 74 2e 76 3d 2d |left;...|..pt.v=-|
|00002310| 28 2a 6d 79 50 69 78 4d | 61 70 48 61 6e 64 6c 65 |(*myPixM|apHandle|
|00002320| 29 2d 3e 62 6f 75 6e 64 | 73 2e 74 6f 70 3b 0d 09 |)->bound|s.top;..|
|00002330| 09 09 09 53 68 69 65 6c | 64 43 75 72 73 6f 72 28 |...Shiel|dCursor(|
|00002340| 26 73 61 6e 64 2e 62 6f | 75 6e 64 73 2c 70 74 29 |&sand.bo|unds,pt)|
|00002350| 3b 0d 09 09 09 09 53 68 | 6f 77 43 75 72 73 6f 72 |;.....Sh|owCursor|
|00002360| 28 29 3b 0d 09 09 09 7d | 0d 09 09 09 23 69 66 20 |();....}|....#if |
|00002370| 52 41 49 53 45 5f 50 52 | 49 4f 52 49 54 59 0d 09 |RAISE_PR|IORITY..|
|00002380| 09 09 09 53 65 74 50 72 | 69 6f 72 69 74 79 28 30 |...SetPr|iority(0|
|00002390| 29 3b 09 2f 2a 20 52 65 | 76 69 76 65 20 6b 65 79 |);./* Re|vive key|
|000023a0| 62 6f 61 72 64 20 61 6e | 64 20 6d 6f 75 73 65 2e |board an|d mouse.|
|000023b0| 20 2a 2f 0d 09 09 09 23 | 65 6e 64 69 66 0d 09 09 | */....#|endif...|
|000023c0| 09 23 69 66 20 57 41 49 | 54 5f 4e 45 58 54 5f 45 |.#if WAI|T_NEXT_E|
|000023d0| 56 45 4e 54 0d 20 20 20 | 09 09 09 69 66 28 57 61 |VENT. |...if(Wa|
|000023e0| 69 74 4e 65 78 74 45 76 | 65 6e 74 28 6d 44 6f 77 |itNextEv|ent(mDow|
|000023f0| 6e 4d 61 73 6b 2b 6b 65 | 79 44 6f 77 6e 4d 61 73 |nMask+ke|yDownMas|
|00002400| 6b 2c 26 65 76 65 6e 74 | 2c 30 2c 69 67 6e 6f 72 |k,&event|,0,ignor|
|00002410| 65 52 67 6e 29 29 7b 0d | 20 20 20 09 09 09 23 65 |eRgn)){.| ...#e|
|00002420| 6c 73 65 0d 20 20 20 09 | 09 09 69 66 28 47 65 74 |lse. .|..if(Get|
|00002430| 4e 65 78 74 45 76 65 6e | 74 28 6d 44 6f 77 6e 4d |NextEven|t(mDownM|
|00002440| 61 73 6b 2b 6b 65 79 44 | 6f 77 6e 4d 61 73 6b 2c |ask+keyD|ownMask,|
|00002450| 26 65 76 65 6e 74 29 29 | 7b 0d 20 20 20 09 09 09 |&event))|{. ...|
|00002460| 23 65 6e 64 69 66 0d 09 | 09 09 09 73 77 69 74 63 |#endif..|...switc|
|00002470| 68 28 65 76 65 6e 74 2e | 77 68 61 74 29 7b 0d 09 |h(event.|what){..|
|00002480| 09 09 09 63 61 73 65 20 | 6b 65 79 44 6f 77 6e 3a |...case |keyDown:|
|00002490| 0d 09 09 09 09 09 69 66 | 28 65 76 65 6e 74 2e 6d |......if|(event.m|
|000024a0| 6f 64 69 66 69 65 72 73 | 20 26 20 63 6d 64 4b 65 |odifiers| & cmdKe|
|000024b0| 79 29 20 73 77 69 74 63 | 68 28 65 76 65 6e 74 2e |y) switc|h(event.|
|000024c0| 6d 65 73 73 61 67 65 20 | 26 20 63 68 61 72 43 6f |message |& charCo|
|000024d0| 64 65 4d 61 73 6b 29 20 | 7b 0d 09 09 09 09 09 09 |deMask) |{.......|
|000024e0| 63 61 73 65 20 27 2e 27 | 3a 0d 09 09 09 09 09 09 |case '.'|:.......|
|000024f0| 63 61 73 65 20 27 77 27 | 3a 0d 09 09 09 09 09 09 |case 'w'|:.......|
|00002500| 64 6f 6e 65 3d 31 3b 0d | 09 09 09 09 09 7d 0d 09 |done=1;.|.....}..|
|00002510| 09 09 09 09 62 72 65 61 | 6b 3b 0d 09 09 09 09 63 |....brea|k;.....c|
|00002520| 61 73 65 20 6d 6f 75 73 | 65 44 6f 77 6e 3a 0d 09 |ase mous|eDown:..|
|00002530| 09 09 09 09 75 70 64 61 | 74 65 3d 31 3b 0d 09 09 |....upda|te=1;...|
|00002540| 09 09 09 77 69 6e 64 6f | 77 45 76 65 6e 74 3d 46 |...windo|wEvent=F|
|00002550| 69 6e 64 57 69 6e 64 6f | 77 28 65 76 65 6e 74 2e |indWindo|w(event.|
|00002560| 77 68 65 72 65 2c 26 61 | 57 69 6e 64 6f 77 29 3b |where,&a|Window);|
|00002570| 0d 09 09 09 09 09 69 66 | 28 61 57 69 6e 64 6f 77 |......if|(aWindow|
|00002580| 3d 3d 77 69 6e 64 6f 77 | 29 7b 0d 09 09 09 09 09 |==window|){......|
|00002590| 09 73 77 69 74 63 68 28 | 77 69 6e 64 6f 77 45 76 |.switch(|windowEv|
|000025a0| 65 6e 74 29 7b 0d 09 09 | 09 09 09 09 63 61 73 65 |ent){...|....case|
|000025b0| 20 69 6e 44 72 61 67 3a | 0d 09 09 09 09 09 09 09 | inDrag:|........|
|000025c0| 44 72 61 67 57 69 6e 64 | 6f 77 28 77 69 6e 64 6f |DragWind|ow(windo|
|000025d0| 77 2c 65 76 65 6e 74 2e | 77 68 65 72 65 2c 26 71 |w,event.|where,&q|
|000025e0| 64 2e 73 63 72 65 65 6e | 42 69 74 73 2e 62 6f 75 |d.screen|Bits.bou|
|000025f0| 6e 64 73 29 3b 0d 09 09 | 09 09 09 09 09 62 72 65 |nds);...|.....bre|
|00002600| 61 6b 3b 0d 09 09 09 09 | 09 09 63 61 73 65 20 69 |ak;.....|..case i|
|00002610| 6e 47 6f 41 77 61 79 3a | 0d 09 09 09 09 09 09 09 |nGoAway:|........|
|00002620| 64 6f 6e 65 3d 54 72 61 | 63 6b 47 6f 41 77 61 79 |done=Tra|ckGoAway|
|00002630| 28 77 69 6e 64 6f 77 2c | 65 76 65 6e 74 2e 77 68 |(window,|event.wh|
|00002640| 65 72 65 29 3b 0d 09 09 | 09 09 09 09 09 62 72 65 |ere);...|.....bre|
|00002650| 61 6b 3b 0d 09 09 09 09 | 09 09 63 61 73 65 20 69 |ak;.....|..case i|
|00002660| 6e 47 72 6f 77 3a 0d 09 | 09 09 09 09 09 09 72 2e |nGrow:..|......r.|
|00002670| 74 6f 70 3d 72 2e 6c 65 | 66 74 3d 33 32 2b 53 43 |top=r.le|ft=32+SC|
|00002680| 52 4f 4c 4c 5f 42 41 52 | 3b 09 2f 2a 20 6d 69 6e |ROLL_BAR|;./* min|
|00002690| 69 6d 75 6d 20 73 69 7a | 65 20 2a 2f 0d 09 09 09 |imum siz|e */....|
|000026a0| 09 09 09 09 72 2e 62 6f | 74 74 6f 6d 3d 72 2e 72 |....r.bo|ttom=r.r|
|000026b0| 69 67 68 74 3d 31 30 32 | 34 2b 53 43 52 4f 4c 4c |ight=102|4+SCROLL|
|000026c0| 5f 42 41 52 3b 09 2f 2a | 20 6d 61 78 20 73 69 7a |_BAR;./*| max siz|
|000026d0| 65 20 2a 2f 0d 09 09 09 | 09 09 09 09 72 65 53 69 |e */....|....reSi|
|000026e0| 7a 65 20 3d 20 47 72 6f | 77 57 69 6e 64 6f 77 28 |ze = Gro|wWindow(|
|000026f0| 77 69 6e 64 6f 77 2c 65 | 76 65 6e 74 2e 77 68 65 |window,e|vent.whe|
|00002700| 72 65 2c 26 72 29 3b 0d | 09 09 09 09 09 09 09 62 |re,&r);.|.......b|
|00002710| 72 65 61 6b 3b 0d 09 09 | 09 09 09 09 63 61 73 65 |reak;...|....case|
|00002720| 20 69 6e 5a 6f 6f 6d 49 | 6e 3a 0d 09 09 09 09 09 | inZoomI|n:......|
|00002730| 09 63 61 73 65 20 69 6e | 5a 6f 6f 6d 4f 75 74 3a |.case in|ZoomOut:|
|00002740| 0d 09 09 09 09 09 09 09 | 5a 6f 6f 6d 28 77 69 6e |........|Zoom(win|
|00002750| 64 6f 77 2c 77 69 6e 64 | 6f 77 45 76 65 6e 74 2c |dow,wind|owEvent,|
|00002760| 26 65 76 65 6e 74 29 3b | 0d 09 09 09 09 09 09 09 |&event);|........|
|00002770| 62 72 65 61 6b 3b 0d 09 | 09 09 09 09 09 63 61 73 |break;..|.....cas|
|00002780| 65 20 69 6e 43 6f 6e 74 | 65 6e 74 3a 0d 09 09 09 |e inCont|ent:....|
|00002790| 09 09 09 09 62 72 65 61 | 6b 3b 0d 09 09 09 09 09 |....brea|k;......|
|000027a0| 09 64 65 66 61 75 6c 74 | 3a 0d 09 09 09 09 09 09 |.default|:.......|
|000027b0| 09 75 70 64 61 74 65 3d | 30 3b 0d 09 09 09 09 09 |.update=|0;......|
|000027c0| 09 09 62 72 65 61 6b 3b | 0d 09 09 09 09 09 09 7d |..break;|.......}|
|000027d0| 0d 09 09 09 09 09 09 62 | 72 65 61 6b 3b 0d 09 09 |.......b|reak;...|
|000027e0| 09 09 09 7d 0d 09 09 09 | 09 09 62 72 65 61 6b 3b |...}....|..break;|
|000027f0| 0d 09 09 09 09 7d 0d 09 | 09 09 7d 09 09 09 0d 09 |.....}..|..}.....|
|00002800| 09 09 69 66 28 75 70 64 | 61 74 65 20 7c 7c 20 64 |..if(upd|ate || d|
|00002810| 6f 6e 65 29 62 72 65 61 | 6b 3b 0d 09 09 7d 0d 09 |one)brea|k;...}..|
|00002820| 09 69 66 28 64 6f 6e 65 | 29 62 72 65 61 6b 3b 0d |.if(done|)break;.|
|00002830| 09 7d 0d 09 53 65 74 50 | 6f 72 74 28 6f 6c 64 50 |.}..SetP|ort(oldP|
|00002840| 6f 72 74 29 3b 0d 09 44 | 69 73 70 6f 73 65 52 67 |ort);..D|isposeRg|
|00002850| 6e 28 69 67 6e 6f 72 65 | 52 67 6e 29 3b 0d 09 44 |n(ignore|Rgn);..D|
|00002860| 69 73 70 6f 73 50 74 72 | 28 62 75 66 66 65 72 2e |isposPtr|(buffer.|
|00002870| 62 61 73 65 41 64 64 72 | 29 3b 0d 09 44 69 73 70 |baseAddr|);..Disp|
|00002880| 6f 73 65 57 69 6e 64 6f | 77 28 77 69 6e 64 6f 77 |oseWindo|w(window|
|00002890| 29 3b 0d 7d 0d 0d 42 6f | 6f 6c 65 61 6e 20 5a 6f |);.}..Bo|olean Zo|
|000028a0| 6f 6d 65 64 4f 75 74 28 | 57 69 6e 64 6f 77 50 74 |omedOut(|WindowPt|
|000028b0| 72 20 77 29 0d 2f 2a 20 | 44 65 74 65 72 6d 69 6e |r w)./* |Determin|
|000028c0| 65 20 77 68 65 74 68 65 | 72 20 77 69 6e 64 6f 77 |e whethe|r window|
|000028d0| 20 69 73 20 22 73 74 61 | 6e 64 61 72 64 22 20 73 | is "sta|ndard" s|
|000028e0| 69 7a 65 2c 20 69 2e 65 | 2e 20 7a 6f 6f 6d 65 64 |ize, i.e|. zoomed|
|000028f0| 20 6f 75 74 2e 20 2a 2f | 0d 7b 0d 09 50 6f 69 6e | out. */|.{..Poin|
|00002900| 74 20 70 74 3b 0d 09 52 | 65 63 74 20 72 2c 6d 79 |t pt;..R|ect r,my|
|00002910| 52 65 63 74 3b 0d 09 42 | 6f 6f 6c 65 61 6e 20 7a |Rect;..B|oolean z|
|00002920| 6f 6f 6d 65 64 4f 75 74 | 3b 0d 09 0d 09 6d 79 52 |oomedOut|;....myR|
|00002930| 65 63 74 3d 28 2a 28 28 | 57 53 74 61 74 65 44 61 |ect=(*((|WStateDa|
|00002940| 74 61 20 2a 2a 29 28 28 | 57 69 6e 64 6f 77 50 65 |ta **)((|WindowPe|
|00002950| 65 6b 29 77 29 2d 3e 64 | 61 74 61 48 61 6e 64 6c |ek)w)->d|ataHandl|
|00002960| 65 29 29 2d 3e 73 74 64 | 53 74 61 74 65 3b 0d 09 |e))->std|State;..|
|00002970| 70 74 2e 68 3d 30 3b 0d | 09 70 74 2e 76 3d 30 3b |pt.h=0;.|.pt.v=0;|
|00002980| 0d 09 4c 6f 63 61 6c 54 | 6f 47 6c 6f 62 61 6c 28 |..LocalT|oGlobal(|
|00002990| 26 70 74 29 3b 0d 09 72 | 20 3d 20 77 2d 3e 70 6f |&pt);..r| = w->po|
|000029a0| 72 74 52 65 63 74 3b 0d | 09 4f 66 66 73 65 74 52 |rtRect;.|.OffsetR|
|000029b0| 65 63 74 28 26 72 2c 70 | 74 2e 68 2c 70 74 2e 76 |ect(&r,p|t.h,pt.v|
|000029c0| 29 3b 0d 09 7a 6f 6f 6d | 65 64 4f 75 74 3d 72 2e |);..zoom|edOut=r.|
|000029d0| 74 6f 70 3d 3d 6d 79 52 | 65 63 74 2e 74 6f 70 0d |top==myR|ect.top.|
|000029e0| 09 09 26 26 20 72 2e 6c | 65 66 74 3d 3d 6d 79 52 |..&& r.l|eft==myR|
|000029f0| 65 63 74 2e 6c 65 66 74 | 0d 09 09 26 26 20 72 2e |ect.left|...&& r.|
|00002a00| 62 6f 74 74 6f 6d 3d 3d | 6d 79 52 65 63 74 2e 62 |bottom==|myRect.b|
|00002a10| 6f 74 74 6f 6d 0d 09 09 | 26 26 20 72 2e 72 69 67 |ottom...|&& r.rig|
|00002a20| 68 74 3d 3d 6d 79 52 65 | 63 74 2e 72 69 67 68 74 |ht==myRe|ct.right|
|00002a30| 3b 0d 09 72 65 74 75 72 | 6e 20 7a 6f 6f 6d 65 64 |;..retur|n zoomed|
|00002a40| 4f 75 74 3b 0d 7d 00 00 | 00 00 00 00 00 00 00 00 |Out;.}..|........|
|00002a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a80| 00 00 01 00 00 00 04 3e | 00 00 03 3e 00 00 00 72 |.......>|...>...r|
|00002a90| 6e 00 18 fe aa 42 6e fe | b0 42 67 48 6e fe 94 42 |n....Bn.|.BgHn..B|
|00002aa0| 67 4e ba 04 72 3d 5f fe | 92 4a 6e fe 92 66 0a 20 |gN..r=_.|.Jn..f. |
|00002ab0| 0b 53 61 6e 64 73 74 6f | 72 6d 2e 63 02 00 00 00 |.Sandsto|rm.c....|
|00002ac0| 50 61 72 74 53 49 54 21 | 00 00 00 00 00 00 00 00 |PartSIT!|........|
|00002ad0| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00002ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002af0| 00 00 ab bf ee 2e 00 00 | 00 00 00 00 04 b0 01 42 |........|.......B|
|00002b00| 2e fe f6 41 ee fe f6 2d | 48 fe 9c 3d 7c ff ff fe |...A...-|H..=|...|
|00002b10| a0 3d 46 fe a6 2d 6e ff | f6 fe ba 42 67 48 6e fe |.=F..-n.|...BgHn.|
|00002b20| 8a 42 67 4e ba 03 f0 3a | 1f 4a 45 57 c0 2f 00 42 |.BgN...:|.JEW./.B|
|00002b30| 67 48 6e fe a8 72 03 2f | 01 a8 5d 12 1f 20 1f 0a |gHn..r./|..].. ..|
|00002b40| 01 00 01 c0 01 41 ee fe | aa 43 fa 00 72 72 03 b1 |.....A..|.C..rr..|
|00002b50| 09 56 c9 ff fc 57 c1 c0 | 01 67 48 2f 0c 48 7a 00 |.V...W..|.gH/.Hz.|
|00002b60| 5a a9 33 2f 0b 48 7a 00 | 52 a9 33 2f 0c 3f 07 48 |Z.3/.Hz.|R.3/.?.H|
|00002b70| 6e fe f6 a9 47 2f 0b 3f | 07 48 6e fe f6 a9 47 70 |n...G/.?|.Hn...Gp|
|00002b80| 00 00 00 1e 00 3c 00 24 | 01 8d 02 3d 00 3c 00 24 |.....<.$|...=.<.$|
|00002b90| 01 8d 02 3d 00 00 0e b7 | 00 00 00 00 00 00 00 00 |...=....|........|
|00002ba0| 00 00 00 00 00 14 00 00 | 0f 04 00 4b 00 00 00 00 |........|...K....|
|00002bb0| 00 00 21 43 ff ff 00 00 | 00 00 00 00 02 8e 00 0f |..!C....|........|
|00002bc0| 00 16 00 00 21 91 00 df | 00 bd d9 5c 00 00 07 73 |....!...|...\...s|
|00002bd0| 72 63 43 6f 70 79 00 22 | 00 00 22 c8 00 e5 00 bd |rcCopy."|..".....|
|00002be0| d9 4c 80 00 00 2a 03 d2 | 01 0a 04 ec 94 20 00 00 |.L...*..|..... ..|
|00002bf0| 00 00 00 00 03 70 74 20 | 00 2e 00 00 22 c8 00 e5 |.....pt |...."...|
|00002c00| 00 bd d8 f4 00 00 1f 28 | 2a 28 43 57 69 6e 64 6f |.......(|*(CWindo|
|00002c10| 77 50 74 72 29 77 69 6e | 64 6f 77 29 2e 70 6f 72 |wPtr)win|dow).por|
|00002c20| 74 52 65 63 74 20 00 3a | 00 00 22 c8 00 e5 00 bd |tRect .:|..".....|
|00002c30| d8 e4 00 00 2b 28 2a 2a | 28 2a 28 43 57 69 6e 64 |....+(**|(*(CWind|
|00002c40| 6f 77 50 74 72 29 77 69 | 6e 64 6f 77 29 2e 70 6f |owPtr)wi|ndow).po|
|00002c50| 72 74 50 69 78 4d 61 70 | 29 2e 62 6f 75 6e 64 73 |rtPixMap|).bounds|
|00002c60| 00 32 00 00 22 c8 00 e5 | 00 bd d8 d4 00 00 23 2a |.2.."...|......#*|
|00002c70| 2a 28 2a 28 43 57 69 6e | 64 6f 77 50 74 72 29 77 |*(*(CWin|dowPtr)w|
|00002c80| 69 6e 64 6f 77 29 2e 70 | 6f 72 74 50 69 78 4d 61 |indow).p|ortPixMa|
|00002c90| 70 20 00 30 00 00 22 c8 | 00 e5 00 bd d8 c4 00 00 |p .0..".|........|
|00002ca0| 21 2a 28 2a 28 43 57 69 | 6e 64 6f 77 50 74 72 29 |!*(*(CWi|ndowPtr)|
|00002cb0| 77 69 6e 64 6f 77 29 2e | 70 6f 72 74 50 69 78 4d |window).|portPixM|
|00002cc0| 61 70 00 38 00 00 22 c8 | 00 e5 00 bd d8 b4 00 00 |ap.8..".|........|
|00002cd0| 29 28 2a 2a 28 2a 28 43 | 57 69 6e 64 6f 77 50 74 |)(**(*(C|WindowPt|
|00002ce0| 72 29 77 69 6e 64 6f 77 | 29 2e 76 69 73 52 67 6e |r)window|).visRgn|
|00002cf0| 29 2e 72 67 6e 42 42 6f | 78 20 00 2e 00 00 22 c8 |).rgnBBo|x ....".|
|00002d00| 00 e5 00 bd d8 a4 00 00 | 1f 2a 2a 28 2a 28 43 57 |........|.**(*(CW|
|00002d10| 69 6e 64 6f 77 50 74 72 | 29 77 69 6e 64 6f 77 29 |indowPtr|)window)|
|00002d20| 2e 76 69 73 52 67 6e 20 | 00 2c 00 00 22 c8 00 e5 |.visRgn |.,.."...|
|00002d30| 00 bd d8 94 00 00 1d 2a | 28 2a 28 43 57 69 6e 64 |.......*|(*(CWind|
|00002d40| 6f 77 50 74 72 29 77 69 | 6e 64 6f 77 29 2e 76 69 |owPtr)wi|ndow).vi|
|00002d50| 73 52 67 6e 00 32 00 00 | 22 c8 00 e5 00 bd d8 84 |sRgn.2..|".......|
|00002d60| 80 00 00 3e 03 d5 01 d9 | 04 fc 94 20 00 00 00 00 |...>....|... ....|
|00002d70| 00 00 13 2a 28 43 57 69 | 6e 64 6f 77 50 74 72 29 |...*(CWi|ndowPtr)|
|00002d80| 77 69 6e 64 6f 77 00 22 | 00 00 22 c8 00 e5 00 bd |window."|..".....|
|00002d90| d7 9c 00 00 13 28 43 57 | 69 6e 64 6f 77 50 74 72 |.....(CW|indowPtr|
|00002da0| 29 77 69 6e 64 6f 77 20 | 00 38 00 00 22 c8 00 e5 |)window |.8.."...|
|00002db0| 00 bd d6 20 80 00 00 66 | 03 de 01 46 04 f8 94 20 |... ...f|...F... |
|00002dc0| 00 00 00 00 00 00 19 28 | 2a 2a 6d 79 50 69 78 4d |.......(|**myPixM|
|00002dd0| 61 70 48 61 6e 64 6c 65 | 29 2e 62 6f 75 6e 64 73 |apHandle|).bounds|
|00002de0| 00 30 00 00 22 c8 00 e5 | 00 bd d6 d4 80 00 00 52 |.0.."...|.......R|
|00002df0| 03 da 01 32 04 f4 94 20 | 00 00 00 00 00 00 11 2a |...2... |.......*|
|00002e00| 2a 6d 79 50 69 78 4d 61 | 70 48 61 6e 64 6c 65 20 |*myPixMa|pHandle |
|00002e10| 00 1e 00 00 22 c8 00 e5 | 00 bd d6 80 00 00 0f 2a |...."...|.......*|
|00002e20| 6d 79 50 69 78 4d 61 70 | 48 61 6e 64 6c 65 00 1e |myPixMap|Handle..|
|00002e30| 00 00 22 c8 00 e5 00 bd | d7 10 00 00 0f 6d 79 50 |..".....|.....myP|
|00002e40| 69 78 4d 61 70 48 61 6e | 64 6c 65 20 00 00 00 22 |ixMapHan|dle ..."|
|00002e50| 00 02 00 00 0f 19 00 00 | 0f 1d 05 6d 61 69 6e 00 |........|...main.|
|00002e60| 00 00 0f 54 00 00 0f 5d | 09 53 61 6e 64 73 74 6f |...T...]|.Sandsto|
|00002e70| 72 6d 00 00 00 48 00 09 | 4d 6f 6e 61 63 6f 00 00 |rm...H..|Monaco..|
|00002e80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e90| 00 00 00 00 00 00 00 00 | 00 06 00 04 00 2a 00 03 |........|.....*..|
|00002ea0| 01 8d 02 7d 00 7d 00 18 | 01 8c 02 7c aa ed fc 27 |...}.}..|...|...'|
|00002eb0| 00 00 0c e5 00 00 0c f2 | 00 00 00 00 00 00 00 00 |........|........|
|00002ec0| 01 00 00 00 04 3e 00 00 | 03 3e 00 00 00 72 00 3a |.....>..|.>...r.:|
|00002ed0| a4 e0 23 fe 00 00 00 1c | 00 72 00 02 4d 50 53 52 |..#.....|.r..MPSR|
|00002ee0| 00 02 00 1a 42 4b 50 54 | 00 00 00 3e 44 54 56 55 |....BKPT|...>DTVU|
|00002ef0| 00 00 00 4a 03 f0 ff ff | 00 00 00 00 00 00 00 00 |...J....|........|
|00002f00| 03 ef ff ff 00 00 02 cc | 00 00 00 00 03 ed ff ff |........|........|
|00002f10| 00 00 02 f2 00 3a a0 f8 | 5a 80 ff ff 00 00 00 22 |.....:..|Z......"|
|00002f20| 00 00 00 00 57 bc ff ff | 00 00 00 3a 00 00 00 00 |....W...|...:....|
|00002f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+